1 18 package org.apache.geronimo.interop.properties; 19 20 public class PropertyLog { 21 public static PropertyLog getInstance(String instanceName) { 22 PropertyLog log = new PropertyLog(); 23 log.init(instanceName); 24 return log; 25 } 26 27 private String instanceName; 28 29 public String getInstanceName() { 30 return instanceName; 31 } 32 33 protected void init(String instanceName) { 34 this.instanceName = instanceName; 35 } 36 37 public void debugUsingValue(String value) { 38 System.out.println("PropertyLog.debugUsingValue(): NEEDS IMPLEMENTATION??"); 39 } 40 41 public void debugUsingDefaultValue(String defaultValue) { 42 System.out.println("PropertyLog.debugUsingValue(): NEEDS IMPLEMENTATION??"); 43 } 44 45 public String errorMissingValueForRequiredProperty(String property, String context) { 46 String msg = "PropertyLog.errorMissingValueForRequiredProperty(): property: " + property + ", context: " + context; 47 System.out.println(msg); 48 return msg; 49 } 50 51 public String errorMissingValueForRequiredSystemProperty(String property, String refProperty, String context) { 52 String msg = "PropertyLog.errorMissingValueForRequiredSystemProperty(): property: " + property + ", refProperty: " + refProperty + ", context: " + context; 53 System.out.println(msg); 54 return msg; 55 } 56 } 57 | Popular Tags |