1 15 package org.apache.tapestry.util; 16 17 import org.apache.tapestry.engine.IPropertySource; 18 19 27 28 public class SystemPropertiesPropertySource implements IPropertySource 29 { 30 private static IPropertySource _shared; 31 32 public static synchronized IPropertySource getInstance() 33 { 34 if (_shared == null) 35 _shared = new SystemPropertiesPropertySource(); 36 37 return _shared; 38 } 39 40 44 45 public String getPropertyValue(String propertyName) 46 { 47 return System.getProperty(propertyName); 48 } 49 50 } 51 | Popular Tags |