KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > gcc > naming > NameServiceLog


1 /*
2  * Copyright 2004 The Apache Software Foundation or its licensors, as
3  * applicable.
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
14  * implied.
15  *
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */

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