com.rhi.architecture.cache
Interface CacheFactory

All Superinterfaces:
Resource
All Known Implementing Classes:
SimpleCacheFactory

public interface CacheFactory
extends Resource

Interface that needs to be implemented by all Factory classes for creation/retrieval of specific cache mgr and initilizing cache.

Since:
1.0
Author:
G Srinivas

Field Summary
static java.lang.String KEY
          The Key used to get the CacheFactory from the configuration settings.
 
Method Summary
 CacheManager getManager(java.lang.Object type)
          If a cache manager is currently registered for the provided type, return it.
 
Methods inherited from interface com.rhi.architecture.resource.Resource
close, init
 

Field Detail

KEY

public static final java.lang.String KEY
The Key used to get the CacheFactory from the configuration settings.

See Also:
Constant Field Values
Method Detail

getManager

public CacheManager getManager(java.lang.Object type)
If a cache manager is currently registered for the provided type, return it. If not, create a new CacheManager instance key'd off the type & return it.

Parameters:
type - - the object type that is to be cached.
Returns:
CacheManager an appropriate CacheManager given the object type
Since:
1.0


Copyright © 2002-2004 Robert Half International. All Rights Reserved.