Package org.opennms.core.config.api
Interface ConfigurationProvider
-
- All Known Implementing Classes:
BeanConfigurationProvider
,ConfigExtensionManager
,EventConfExtensionManager
,GraphPropertiesExtensionManager
,ResourceTypesExtensionManager
,SnmpCollectionExtensionManager
,SyslogMatchExtensionManager
,ThreshdConfigurationExtensionManager
,ThresholdingConfigExtensionManager
public interface ConfigurationProvider
This interface allows extensions to provide configuration objects of a given type. SeeConfigReloadContainer
- Author:
- jwhite
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
deregisteredFromConfigReloadContainer()
Notifies this configuration provider that it was unregistered from theConfigReloadContainer
.long
getLastUpdate()
Object
getObject()
Retrieve the actual configuration bean.Class<?>
getType()
Retrieve a class reference to the type of object returned bygetObject()
.void
registeredToConfigReloadContainer()
Notifies this configuration provider that it was registered with theConfigReloadContainer
.
-
-
-
Method Detail
-
getType
Class<?> getType()
Retrieve a class reference to the type of object returned bygetObject()
. This is used instead of generics to be OSGi friendly.- Returns:
- the type of object returned by
getObject()
-
getObject
Object getObject()
Retrieve the actual configuration bean.- Returns:
- the configuration bean, must be non-null
-
getLastUpdate
long getLastUpdate()
- Returns:
- the last time (in ms) at which the configuration bean was updated
-
registeredToConfigReloadContainer
void registeredToConfigReloadContainer()
Notifies this configuration provider that it was registered with theConfigReloadContainer
.
-
deregisteredFromConfigReloadContainer
void deregisteredFromConfigReloadContainer()
Notifies this configuration provider that it was unregistered from theConfigReloadContainer
.
-
-