public class BaseConfigMBean extends Object implements ConfigMBean
AbstractConfiguration
.Constructor and Description |
---|
BaseConfigMBean(org.apache.commons.configuration.AbstractConfiguration config) |
Modifier and Type | Method and Description |
---|---|
void |
addProperty(String key,
String value)
Calls
config.addrProperty() . |
void |
clearProperty(String key)
Calls
config.clearProperty() . |
Object |
getProperty(String key)
Returns the current value of a property given a key
|
Object |
obtainProperties()
Returns all Properties.
|
void |
updateProperty(String key,
String value)
Calls
config.setProperty() . |
public BaseConfigMBean(org.apache.commons.configuration.AbstractConfiguration config)
public Object obtainProperties()
ConfigMBean
Properties
, but doing so will make this operation dissapear
from the JConsole.obtainProperties
in interface ConfigMBean
public Object getProperty(String key)
ConfigMBean
getProperty
in interface ConfigMBean
public void updateProperty(String key, String value)
config.setProperty()
. If the underlying configuration
is ConcurrentCompositeConfiguration
, it calls ConcurrentCompositeConfiguration.setOverrideProperty(String, Object)
instead.updateProperty
in interface ConfigMBean
public void clearProperty(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(String key, String value)
config.addrProperty()
. If the underlying configuration
is ConcurrentCompositeConfiguration
, it calls ConcurrentCompositeConfiguration.setOverrideProperty(String, Object)
instead.addProperty
in interface ConfigMBean
Copyright © 2020. All Rights Reserved.