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