|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.extensions.validator.core.factory.AbstractNameMapperAwareFactory<String>
org.apache.myfaces.extensions.validator.core.storage.AbstractStorageManager<T>
public abstract class AbstractStorageManager<T>
An implementation of AbstractStorageManager is responsible to
manage storages (create(java.lang.String) and reset(java.lang.String))
in the context of a specific scope (e.g. the application scope of JSF).
| Field Summary | |
|---|---|
protected Logger |
logger
|
| Constructor Summary | |
|---|---|
AbstractStorageManager()
|
|
| Method Summary | |
|---|---|
T |
create(String storageName)
Creates and scope or retrieve a previously created instance, of the storage for the given key. |
protected List<NameMapper<String>> |
getNameMapperList()
|
abstract String |
getStorageManagerKey()
Returns the key which will be used to find the storages scoped by the storage-manager instance. |
void |
reset(String storageKey)
Resets the storage linked to the given key. |
protected T |
resolveStorage(String storageKey,
String storageClassName)
Retrieves the storage Manager from the cached instances, if already created previously. |
protected abstract Map<String,T> |
resolveStorageMap()
Returns a Map of all scoped storages stored by the current manager instance. |
| Methods inherited from class org.apache.myfaces.extensions.validator.core.factory.AbstractNameMapperAwareFactory |
|---|
deny, deregister, getComparator, register |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Logger logger
| Constructor Detail |
|---|
public AbstractStorageManager()
| Method Detail |
|---|
public T create(String storageName)
create in interface StorageManager<T>storageName - The key for a storage that needs to be created
protected T resolveStorage(String storageKey,
String storageClassName)
storageKey - The type of storage that needs to be createdstorageClassName - The class name of the implementation of the storage manager.
protected abstract Map<String,T> resolveStorageMap()
public void reset(String storageKey)
StorageManager
reset in interface StorageManager<T>storageKey - The key for a storage that needs to be resettedprotected List<NameMapper<String>> getNameMapperList()
getNameMapperList in class AbstractNameMapperAwareFactory<String>public abstract String getStorageManagerKey()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||