Interface OverrideableDao<T>
-
- All Superinterfaces:
ReadableDao<T>
,WriteableDao<T>
- All Known Subinterfaces:
OverrideablePollOutagesDao
,OverrideableThreshdDao
,OverrideableThresholdingDao
- All Known Implementing Classes:
OverrideablePollOutagesDaoImpl
,OverrideableThreshdDaoImpl
,OverrideableThresholdingDaoImpl
public interface OverrideableDao<T> extends WriteableDao<T>
This interface exists to satisfy test cases that need to explicitly provide a configuration directly to the DAO.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default T
getWriteableConfig()
This method returns the mutable configuration object for which any changes made to it will be persisted and reflected after a call toWriteableDao.saveConfig()
.void
overrideConfig(java.io.InputStream config)
void
overrideConfig(T config)
-
Methods inherited from interface org.opennms.netmgt.config.dao.common.api.ReadableDao
getReadOnlyConfig, reload
-
Methods inherited from interface org.opennms.netmgt.config.dao.common.api.WriteableDao
onConfigChanged, saveConfig
-
-
-
-
Method Detail
-
overrideConfig
void overrideConfig(java.io.InputStream config)
-
overrideConfig
void overrideConfig(T config)
-
getWriteableConfig
default T getWriteableConfig()
Description copied from interface:WriteableDao
This method returns the mutable configuration object for which any changes made to it will be persisted and reflected after a call toWriteableDao.saveConfig()
.- Specified by:
getWriteableConfig
in interfaceWriteableDao<T>
-
-