Package sonia.scm.store
Class AbstractStore<T>
java.lang.Object
sonia.scm.store.AbstractStore<T>
- Type Parameters:
T
- type of store objects
- All Implemented Interfaces:
ConfigurationStore<T>
Base class for
ConfigurationStore
.- Since:
- 1.16
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
Deletes the configuration.protected abstract void
Deletes store object.get()
Returns the configuration object from store.protected abstract T
Read the stored object.void
Stores the given configuration object to the store.protected abstract void
writeObject
(T object) Write object to the store.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface sonia.scm.store.ConfigurationStore
getOptional
-
Field Details
-
storeObject
-
-
Constructor Details
-
AbstractStore
-
-
Method Details
-
get
Description copied from interface:ConfigurationStore
Returns the configuration object from store.- Specified by:
get
in interfaceConfigurationStore<T>
- Returns:
- configuration object from store
-
set
Description copied from interface:ConfigurationStore
Stores the given configuration object to the store.- Specified by:
set
in interfaceConfigurationStore<T>
- Parameters:
object
- configuration object to store
-
delete
public void delete()Description copied from interface:ConfigurationStore
Deletes the configuration.- Specified by:
delete
in interfaceConfigurationStore<T>
-
readObject
Read the stored object.- Returns:
- stored object
-
writeObject
Write object to the store.- Parameters:
object
- object to write
-
deleteObject
protected abstract void deleteObject()Deletes store object.- Since:
- 2.24.0
-