public class BaseConfigMBean extends java.lang.Object implements ConfigMBean
AbstractConfiguration
.Constructor and Description |
---|
BaseConfigMBean(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 java.lang.Object obtainProperties()
ConfigMBean
Properties
, but doing so will make this operation dissapear
from the JConsole.obtainProperties
in interface ConfigMBean
public java.lang.Object getProperty(java.lang.String key)
ConfigMBean
getProperty
in interface ConfigMBean
public 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 ConfigMBean
public 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 ConfigMBean
public 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