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)
ContextSource
getProperty
in interface ContextSource
property
- property namenull
if unknown)public java.util.Dictionary getContext()
ContextSource
getContext
in interface ContextSource
public void registerContextListener(ContextListener listener, java.lang.String[] properties)
ContextSource
registerContextListener
in interface ContextSource
listener
- the context listener to register.properties
- property set monitored by the listener.public void unregisterContextListener(ContextListener listener)
ContextSource
unregisterContextListener
in interface ContextSource
listener
- the listener to unregister.Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.