org.apache.myfaces.extensions.validator.core.storage
Interface StorageManagerHolder

All Known Implementing Classes:
DefaultStorageManagerFactory

public interface StorageManagerHolder

Interface to manage storage-manager instances.

Since:
x.x.3
See Also:
StorageManager

Method Summary
 StorageManager getStorageManager(Class type)
          Returns the storageManager for the given type.
 void setStorageManager(Class type, StorageManager storageManager, boolean override)
          Define the storage manager for the given type.
 

Method Detail

setStorageManager

void setStorageManager(Class type,
                       StorageManager storageManager,
                       boolean override)
Define the storage manager for the given type.

Parameters:
type - The identification for the storage manager, usually it is the storage-class
storageManager - The storageManager to use.
override - use true to replace an existing storageManager and false to use the manager only if there isn't an existing manager for the given type

getStorageManager

StorageManager getStorageManager(Class type)
Returns the storageManager for the given type.

Parameters:
type - The identification for the storage manager, usually it is the storage-class
Returns:
the storageManager for the given type or null


Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.