Package org.pac4j.core.store
Class AbstractStore<K,O>
- java.lang.Object
-
- org.pac4j.core.util.InitializableObject
-
- org.pac4j.core.store.AbstractStore<K,O>
-
- All Implemented Interfaces:
Store<K,O>
- Direct Known Subclasses:
GuavaStore
public abstract class AbstractStore<K,O> extends InitializableObject implements Store<K,O>
Abstract store.- Since:
- 2.0.0
- Author:
- Jerome Leleu
-
-
Constructor Summary
Constructors Constructor Description AbstractStore()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Optional<O>
get(K key)
Get a value by key.protected abstract Optional<O>
internalGet(K key)
protected void
internalInit()
Internal initialization of the object.protected abstract void
internalRemove(K key)
protected abstract void
internalSet(K key, O value)
void
remove(K key)
Remove the value associated to the key.void
set(K key, O value)
Set a value by its key.-
Methods inherited from class org.pac4j.core.util.InitializableObject
init, isInitialized
-
-
-
-
Method Detail
-
internalInit
protected void internalInit()
Description copied from class:InitializableObject
Internal initialization of the object.- Specified by:
internalInit
in classInitializableObject
-
set
public void set(K key, O value)
Description copied from interface:Store
Set a value by its key.
-
remove
public void remove(K key)
Description copied from interface:Store
Remove the value associated to the key.
-
internalRemove
protected abstract void internalRemove(K key)
-
-