public class BaseConfigMBean extends java.lang.Object implements ConfigMBean
AbstractConfiguration.| Constructor and Description |
|---|
BaseConfigMBean(org.apache.commons.configuration.AbstractConfiguration config) |
| Modifier and Type | Method and Description |
|---|---|
void |
addProperty(java.lang.String key,
java.lang.String value)
Calls
config.addrProperty(). |
void |
clearProperty(java.lang.String key)
Calls
config.clearProperty(). |
java.lang.Object |
getProperty(java.lang.String key)
Returns the current value of a property given a key
|
java.lang.Object |
obtainProperties()
Returns all Properties.
|
void |
updateProperty(java.lang.String key,
java.lang.String value)
Calls
config.setProperty(). |
public BaseConfigMBean(org.apache.commons.configuration.AbstractConfiguration config)
public java.lang.Object obtainProperties()
ConfigMBeanProperties, but doing so will make this operation dissapear
from the JConsole.obtainProperties in interface ConfigMBeanpublic java.lang.Object getProperty(java.lang.String key)
ConfigMBeangetProperty in interface ConfigMBeanpublic void updateProperty(java.lang.String key,
java.lang.String value)
config.setProperty(). If the underlying configuration
is ConcurrentCompositeConfiguration, it calls ConcurrentCompositeConfiguration.setOverrideProperty(String, Object)
instead.updateProperty in interface ConfigMBeanpublic void clearProperty(java.lang.String key)
config.clearProperty(). If the underlying configuration
is ConcurrentCompositeConfiguration, it calls ConcurrentCompositeConfiguration.clearOverrideProperty(String)
instead.
Warning: ConcurrentCompositeConfiguration.clearOverrideProperty(String) does not clear the
property with the whole ConcurrentCompositeConfiguration, if any other child configurations in it has the same property.
clearProperty in interface ConfigMBeanpublic void addProperty(java.lang.String key,
java.lang.String value)
config.addrProperty(). If the underlying configuration
is ConcurrentCompositeConfiguration, it calls ConcurrentCompositeConfiguration.setOverrideProperty(String, Object)
instead.addProperty in interface ConfigMBean