Package com.iplanet.am.util
Class SystemPropertiesWrapper
- java.lang.Object
-
- com.iplanet.am.util.SystemPropertiesWrapper
-
public class SystemPropertiesWrapper extends Object
Wrapper which defines a simple dependency injectable dependency for code wishing to access system properties.
-
-
Constructor Summary
Constructors Constructor Description SystemPropertiesWrapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAsInt(String key, int def)Wraps the call toSystemProperties.getAsInt(String, int).voidobserve(ConfigurationListener listener, String... properties)Wraps the call toSystemProperties.observe(ConfigurationListener, String...)
-
-
-
Method Detail
-
getAsInt
public int getAsInt(String key, int def)
Wraps the call toSystemProperties.getAsInt(String, int).- Parameters:
key- System Properties key to retrieve the value for.def- Default if no value is found.- Returns:
- Possibly null string.
-
observe
public void observe(ConfigurationListener listener, String... properties)
Wraps the call toSystemProperties.observe(ConfigurationListener, String...)- Parameters:
listener- The listener to call when one of the provided properties has changed.properties- The list of properties that should be observed. A change in any one of these properties will cause the listener to be notified.
-
-