Package org.opennms.netmgt.dao.jmx
Class JmxConfigDaoJaxb
- java.lang.Object
-
- org.opennms.core.xml.AbstractJaxbConfigDao<JmxConfig,JmxConfig>
-
- org.opennms.netmgt.dao.jmx.JmxConfigDaoJaxb
-
- All Implemented Interfaces:
JmxConfigDao
,org.springframework.beans.factory.InitializingBean
public class JmxConfigDaoJaxb extends AbstractJaxbConfigDao<JmxConfig,JmxConfig> implements JmxConfigDao
Implementation for config dao class.- Author:
- Christian Pape
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opennms.core.xml.AbstractJaxbConfigDao
AbstractJaxbConfigDao.JaxbReloadCallback
-
-
Constructor Summary
Constructors Constructor Description JmxConfigDaoJaxb()
Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JmxConfig
getConfig()
Returns the loaded config object.JmxConfig
translateConfig(JmxConfig jaxbConfig)
Used to transform the config object to a custom representation.-
Methods inherited from class org.opennms.core.xml.AbstractJaxbConfigDao
addOnReloadedCallback, afterPropertiesSet, getConfigResource, getContainer, getDescription, getReloadCheckInterval, loadConfig, setConfigResource, setReloadCheckInterval
-
-
-
-
Method Detail
-
getConfig
public JmxConfig getConfig()
Returns the loaded config object.- Specified by:
getConfig
in interfaceJmxConfigDao
- Returns:
- the current config object
-
translateConfig
public JmxConfig translateConfig(JmxConfig jaxbConfig)
Used to transform the config object to a custom representation. This method is not modified in this class, it just returns the config object itself.- Specified by:
translateConfig
in classAbstractJaxbConfigDao<JmxConfig,JmxConfig>
- Parameters:
jaxbConfig
- a config object.- Returns:
- a custom object
-
-