Package org.opennms.netmgt.dao.jaxb
Class VmwareConfigDaoJaxb
- java.lang.Object
-
- org.opennms.core.xml.AbstractJaxbConfigDao<VmwareConfig,VmwareConfig>
-
- org.opennms.netmgt.dao.jaxb.VmwareConfigDaoJaxb
-
- All Implemented Interfaces:
VmwareConfigDao
,org.springframework.beans.factory.InitializingBean
public class VmwareConfigDaoJaxb extends AbstractJaxbConfigDao<VmwareConfig,VmwareConfig> implements VmwareConfigDao
The Class VmwareConfigDaoJaxb This class is used for accessing the Vmware Account configuration file- Author:
- Christian Pape
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opennms.core.xml.AbstractJaxbConfigDao
AbstractJaxbConfigDao.JaxbReloadCallback
-
-
Constructor Summary
Constructors Constructor Description VmwareConfigDaoJaxb()
Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VmwareConfig
getConfig()
Returns the loaded config object.java.util.Map<java.lang.String,VmwareServer>
getServerMap()
Returns the map of server entries from the configuration object.VmwareConfig
translateConfig(VmwareConfig 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 VmwareConfig getConfig()
Returns the loaded config object.- Specified by:
getConfig
in interfaceVmwareConfigDao
- Returns:
- the current config object
-
translateConfig
public VmwareConfig translateConfig(VmwareConfig 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<VmwareConfig,VmwareConfig>
- Parameters:
jaxbConfig
- a config object.- Returns:
- a custom object
-
getServerMap
public java.util.Map<java.lang.String,VmwareServer> getServerMap()
Returns the map of server entries from the configuration object.- Specified by:
getServerMap
in interfaceVmwareConfigDao
- Returns:
- the map of server entries
-
-