KickJava   Java API By Example, From Geeks To Geeks.

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


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 PropertyLog {
21     public static PropertyLog getInstance(String JavaDoc instanceName) {
22         PropertyLog log = new PropertyLog();
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         this.instanceName = instanceName;
35     }
36
37     public void debugUsingValue(String JavaDoc value) {
38         System.out.println("PropertyLog.debugUsingValue(): NEEDS IMPLEMENTATION??");
39     }
40
41     public void debugUsingDefaultValue(String JavaDoc defaultValue) {
42         System.out.println("PropertyLog.debugUsingValue(): NEEDS IMPLEMENTATION??");
43     }
44
45     public String JavaDoc errorMissingValueForRequiredProperty(String JavaDoc property, String JavaDoc context) {
46         String JavaDoc msg = "PropertyLog.errorMissingValueForRequiredProperty(): property: " + property + ", context: " + context;
47         System.out.println(msg);
48         return msg;
49     }
50
51     public String JavaDoc errorMissingValueForRequiredSystemProperty(String JavaDoc property, String JavaDoc refProperty, String JavaDoc context) {
52         String JavaDoc msg = "PropertyLog.errorMissingValueForRequiredSystemProperty(): property: " + property + ", refProperty: " + refProperty + ", context: " + context;
53         System.out.println(msg);
54         return msg;
55     }
56 }
57
Popular Tags