public class InstanceConfigurationSource extends java.lang.Object implements ContextSource
| Constructor and Description |
|---|
InstanceConfigurationSource(java.util.Dictionary<java.lang.String,java.lang.Object> configuration) |
| 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 |
reconfigure(java.util.Dictionary<java.lang.String,java.lang.Object> newConfiguration)
The instance is reconfigured.
|
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 InstanceConfigurationSource(java.util.Dictionary<java.lang.String,java.lang.Object> configuration)
public void reconfigure(java.util.Dictionary<java.lang.String,java.lang.Object> newConfiguration)
newConfiguration - the new instance configurationpublic 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.