Class AbstractStore<T>

java.lang.Object
sonia.scm.store.AbstractStore<T>
Type Parameters:
T - type of store objects
All Implemented Interfaces:
ConfigurationStore<T>

public abstract class AbstractStore<T> extends Object implements ConfigurationStore<T>
Base class for ConfigurationStore.
Since:
1.16
  • Field Details

    • storeObject

      protected T storeObject
  • Constructor Details

  • Method Details

    • get

      public T get()
      Description copied from interface: ConfigurationStore
      Returns the configuration object from store.
      Specified by:
      get in interface ConfigurationStore<T>
      Returns:
      configuration object from store
    • set

      public void set(T object)
      Description copied from interface: ConfigurationStore
      Stores the given configuration object to the store.
      Specified by:
      set in interface ConfigurationStore<T>
      Parameters:
      object - configuration object to store
    • delete

      public void delete()
      Description copied from interface: ConfigurationStore
      Deletes the configuration.
      Specified by:
      delete in interface ConfigurationStore<T>
    • readObject

      protected abstract T readObject()
      Read the stored object.
      Returns:
      stored object
    • writeObject

      protected abstract void writeObject(T object)
      Write object to the store.
      Parameters:
      object - object to write
    • deleteObject

      protected abstract void deleteObject()
      Deletes store object.
      Since:
      2.24.0