KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > geronimo > interop > properties > SystemPropertyLog


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.properties;
19
20 public class SystemPropertyLog {
21     public static SystemPropertyLog getInstance(String JavaDoc instanceName) {
22         SystemPropertyLog log = new SystemPropertyLog();
23         log.init(instanceName);
24         return log;
25     }
26
27     private String JavaDoc instanceName;
28
29     public String JavaDoc getInstanceName() {
30         return instanceName;
31     }
32
33     protected void init(String JavaDoc instanceName) {
34         instanceName = instanceName;
35     }
36
37     public void debugUsingValue(String JavaDoc value) {
38         System.out.println("SystemPropertyLog.debugUsingValue(): value: " + value);
39     }
40
41     public void debugUsingDefaultValue(String JavaDoc defaultValue) {
42         System.out.println("SystemPropertyLog.debugUsingValue(): defaultValue: " + defaultValue);
43     }
44 }
45
Popular Tags