KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > geronimo > interop > naming > NameServiceLog


1 /**
2  *
3  * Copyright 2004-2005 The Apache Software Foundation
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  *
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */

18 package org.apache.geronimo.interop.naming;
19
20 public class NameServiceLog {
21     public static NameServiceLog getInstance() {
22         return new NameServiceLog();
23     }
24
25     public String JavaDoc infoBind(String JavaDoc context, String JavaDoc name, String JavaDoc value) {
26         String JavaDoc msg;
27         msg = "NSL.infoBind: context: " + context + ", name: + " + name + ", value: " + value;
28         return msg;
29     }
30
31     public String JavaDoc warnAmbiguousBinding(String JavaDoc context, String JavaDoc name, String JavaDoc interfaceName) {
32         String JavaDoc msg;
33         msg = "NSL.warnAmbiguousBinding: context: " + context + ", name: + " + name + ", interfaceName: " + interfaceName;
34         return msg;
35     }
36
37     public String JavaDoc warnAmbiguousPattern(String JavaDoc context, String JavaDoc name, String JavaDoc pattern) {
38         String JavaDoc msg;
39         msg = "NSL.warnAmbiguousPattern: context: " + context + ", name: + " + name + ", pattern: " + pattern;
40         return msg;
41     }
42
43     public String JavaDoc warnBindFailed(String JavaDoc context, String JavaDoc name, String JavaDoc value, Exception JavaDoc ex) {
44         String JavaDoc msg;
45         msg = "NSL.warnBindFailed: context: " + context + ", name: + " + name + ", ex: " + ex;
46         return msg;
47     }
48
49     public String JavaDoc warnIllegalBindValue(String JavaDoc context, Class JavaDoc type, String JavaDoc name, String JavaDoc value) {
50         String JavaDoc msg;
51         msg = "NSL.warnBindValue: context: " + context + ", type: + " + type + ", name: " + name + ", value: " + value;
52         return msg;
53     }
54
55     public String JavaDoc warnNameNotFound(String JavaDoc context, Exception JavaDoc notFound) {
56         String JavaDoc msg;
57         msg = "NSL.warnNameNotFound: context: " + context + ", notFound: " + notFound;
58         return msg;
59     }
60
61     public String JavaDoc warnNoComponentsForInterface(String JavaDoc context, String JavaDoc name, String JavaDoc interfaceName) {
62         String JavaDoc msg;
63         msg = "NSL.warnNoComponentForInterface: context: " + context + ", name: + " + name + ", interfaceName: " + interfaceName;
64         return msg;
65     }
66
67     public String JavaDoc warnNoComponentsMatchPattern(String JavaDoc context, String JavaDoc name, String JavaDoc pattern) {
68         String JavaDoc msg;
69         msg = "NSL.warnNoComponentsMatchPattern: context: " + context + ", name: + " + name + ", pattern: " + pattern;
70         return msg;
71     }
72
73     public String JavaDoc warnNoCurrentContext(String JavaDoc exception) {
74         String JavaDoc msg;
75         msg = "NSL.infoNoCurrentContext: exception: " + exception;
76         return msg;
77     }
78
79     public String JavaDoc warnObjectHasNoRemoteInterface(String JavaDoc lookupName, String JavaDoc className) {
80         String JavaDoc msg;
81         msg = "NSL.warnObjectHasNoRemoteInterface: lookupName: " + lookupName + ", className: + " + className;
82         return msg;
83     }
84 }
85
Popular Tags