|
© 2004 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.p13n.cache.CacheFactory
Factory to create Singleton Cache objects. This implementation can be used by clients running inside of the CacheMBean application context (eg, most EJBs) as well as clients running outside of that context (eg, JDBC Connection Pools).
Constructor Summary | |
CacheFactory()
|
Method Summary | |
static boolean |
cacheExists(String cacheName)
Determine whether named cache exists in our collection |
static Cache |
getCache(String name)
Create a new or access an existing Cache. |
static String[] |
getCacheNames()
Returns all Cache names |
static void |
removeCache(String cacheName)
Remove a cache from the system. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CacheFactory()
Method Detail |
public static boolean cacheExists(String cacheName)
public static Cache getCache(String name)
If the cache has been pre-configured using MBeans, then create an instance of a cache with those parameters and return it. If the cache has not been pre-configured with MBeans, then create a cache with default parameters (defined in CacheDefaults) and return it.
If the cache exists already in the CacheFactory's collection (eg, it has been created by a previous call to CacheFactory.getCache()), then return an instance of that named cache.
name
- the name of the cache to create or retrieve
CacheDefaults
public static String[] getCacheNames()
public static void removeCache(String cacheName)
cacheName
- The name of the cache to remove.
|
© 2004 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |