[jboss-cvs] JBossCache/src-50/org/jboss/cache/pojo/factory ...
Ben Wang
bwang at jboss.com
Fri Sep 8 01:36:15 EDT 2006
User: bwang
Date: 06/09/08 01:36:15
Added: src-50/org/jboss/cache/pojo/factory PCacheFactory.java
Log:
updated
Revision Changes Path
1.1 date: 2006/09/08 05:36:15; author: bwang; state: Exp;JBossCache/src-50/org/jboss/cache/pojo/factory/PCacheFactory.java
Index: PCacheFactory.java
===================================================================
/*
* JBoss, Home of Professional Open Source
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jboss.cache.pojo.factory;
import org.jboss.cache.factories.DefaultCacheFactory;
import org.jboss.cache.Cache;
import org.jboss.cache.pojo.PojoTreeCache;
import org.jboss.cache.config.ConfigurationException;
import org.jboss.cache.config.Configuration;
/**
* Implementation of the Cache Factory
*
* @author <a href="mailto:ben.wang at jboss.com">Ben Wang</a>
*/
public class PCacheFactory extends DefaultCacheFactory
{
public Cache createCache(Configuration configuration, boolean start) throws ConfigurationException
{
throw new RuntimeException("PojoCacheFactory.createCache is not supported now");
/*
try
{
PojoTreeCache cache = new PojoTreeCache();
cache.setConfiguration(configuration);
if (start) cache.start();
return cache.getCacheSPI();
}
catch (Exception e)
{
if (e instanceof ConfigurationException) throw (ConfigurationException) e;
throw new ConfigurationException(e.getMessage());
}
*/
}
}
More information about the jboss-cvs-commits
mailing list