|
||||||||||
| 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>
Generic storage manager implementation based on name mappers. There exists 2 subclasses, AbstractApplicationScopeAwareStorageManager and AbstractRequestScopeAwareStorageManager, that use JSF scopes to store the information.
| 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 where the cached instances can be found in the JSF Scope. |
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()
Subclasses need to supply the list of all cached instances. |
| 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 | |||||||||