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 TypeMethodDescriptionvoiddelete()Deletes the configuration.protected abstract voidDeletes store object.get()Returns the configuration object from store.protected abstract TRead the stored object.voidStores the given configuration object to the store.protected abstract voidwriteObject(T object) Write object to the store.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface sonia.scm.store.ConfigurationStore
getOptional
-
Field Details
-
storeObject
-
-
Constructor Details
-
AbstractStore
-
-
Method Details
-
get
Description copied from interface:ConfigurationStoreReturns the configuration object from store.- Specified by:
getin interfaceConfigurationStore<T>- Returns:
- configuration object from store
-
set
Description copied from interface:ConfigurationStoreStores the given configuration object to the store.- Specified by:
setin interfaceConfigurationStore<T>- Parameters:
object- configuration object to store
-
delete
public void delete()Description copied from interface:ConfigurationStoreDeletes the configuration.- Specified by:
deletein 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
-