This page has been migrated to the wiki. https://github.com/anotheria/configureme/wiki/JMX-MBeans
Since now configureMe support JMX mBeans, which provide information about project configuration files.
Supported mBeans:
Name | Description |
---|---|
WatchedConfigFiles | Provides the ability to view in current project list of all configuration files, which are watched. |
ConfigInfo | This type of mBean created for each config and contains config file name, map of attributes, which used by default environment. Also contain method, which show config content. |
mBean class structure:
WatchedConfigFiles
field name | description |
---|---|
configNames | set of configuration files names |
method name | description |
---|---|
getConfigNames() | get from ConfigurationSourceRegistry all sourceKeys, convert to set of configuration files names and return it |
ConfigInfo
field name | description |
---|---|
configName | configuration file name |
method name | description |
---|---|
getConfigName() | return configuration file name |
showContent() | return content of current configuration file |
getAttributes() | return map of attributes, which used by default environment |
setAttributeValue(attrName, attrValue) | set new value for attribute in defaultEnvironment |