BEA Systems, Inc.

com.beasys.commerce.foundation.cache
Class CacheFactory

java.lang.Object
  |
  +--com.beasys.commerce.foundation.cache.CacheFactory

public class CacheFactory
extends java.lang.Object

Factory to create Singleton Cache objects.


Field Summary
static java.lang.String CAPACITY_SUFFIX
           
static java.lang.String ENABLED_SUFFIX
           
static java.lang.String TTL_SUFFIX
          Association from name to Cache allows this object to provide more than one Cache.
 
Constructor Summary
CacheFactory()
           
 
Method Summary
static java.util.Enumeration getAllCacheNames()
          Returns a list of all Cache objects.
static Cache getCache(java.lang.String name)
          Returns a Cache by name.
static Cache getCache(java.lang.String name, int initialSize, long itemTtl, boolean enabled)
          Creates a Cache.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TTL_SUFFIX

public static java.lang.String TTL_SUFFIX
Association from name to Cache allows this object to provide more than one Cache.

CAPACITY_SUFFIX

public static java.lang.String CAPACITY_SUFFIX

ENABLED_SUFFIX

public static java.lang.String ENABLED_SUFFIX
Constructor Detail

CacheFactory

public CacheFactory()
Method Detail

getAllCacheNames

public static java.util.Enumeration getAllCacheNames()
Returns a list of all Cache objects.

getCache

public static Cache getCache(java.lang.String name,
                             int initialSize,
                             long itemTtl,
                             boolean enabled)
Creates a Cache. If the cache exists, returns the existing Cache but does not modify its operation parameters.

getCache

public static Cache getCache(java.lang.String name)
Returns a Cache by name.

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved