public class SystemPropertiesSource extends java.lang.Object implements ContextSource
| Constructor and Description |
|---|
SystemPropertiesSource() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Dictionary |
getContext()
Gets the entire context.
|
java.lang.Object |
getProperty(java.lang.String property)
Gets the current value of the given property.
|
void |
registerContextListener(ContextListener listener,
java.lang.String[] properties)
Registers a context listener on the given set of properties.
|
void |
unregisterContextListener(ContextListener listener)
Unregisters the given context listener.
|
public java.lang.Object getProperty(java.lang.String property)
ContextSourcegetProperty in interface ContextSourceproperty - property namenull if unknown)public java.util.Dictionary getContext()
ContextSourcegetContext in interface ContextSourcepublic void registerContextListener(ContextListener listener, java.lang.String[] properties)
ContextSourceregisterContextListener in interface ContextSourcelistener - the context listener to register.properties - property set monitored by the listener.public void unregisterContextListener(ContextListener listener)
ContextSourceunregisterContextListener in interface ContextSourcelistener - the listener to unregister.Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.