org.jboss.cache.pojo
Class PojoCacheFactory

java.lang.Object
  extended by org.jboss.cache.pojo.PojoCacheFactory

public class PojoCacheFactory
extends java.lang.Object

Factory method to create a PojoCache instance.

Version:
$Id: PojoCacheFactory.java,v 1.2 2007/01/18 16:55:19 msurtani Exp $

Constructor Summary
PojoCacheFactory()
           
 
Method Summary
static PojoCache createCache(Configuration config, boolean start)
          Create a PojoCache instance.
static PojoCache createCache(java.lang.String config)
          Create a PojoCache instance.
static PojoCache createCache(java.lang.String config, boolean start)
          Create a PojoCache instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PojoCacheFactory

public PojoCacheFactory()
Method Detail

createCache

public static PojoCache createCache(java.lang.String config)
Create a PojoCache instance. Note that this will start the cache life cycle automatically.

Parameters:
config - A configuration string that represents the file name that is used to setCache the underlying Cache instance.
Returns:
PojoCache

createCache

public static PojoCache createCache(java.lang.String config,
                                    boolean start)
Create a PojoCache instance.

Parameters:
config - A configuration string that represents the file name that is used to setCache the underlying Cache instance.
start - If true, it will start the cache life cycle.
Returns:
PojoCache

createCache

public static PojoCache createCache(Configuration config,
                                    boolean start)
Create a PojoCache instance.

Parameters:
config - A configuration object that is used to setCache the underlying Cache instance.
start - If true, it will start the cache life cycle.
Returns:
PojoCache