[jboss-cvs] JBossCache/src-50/org/jboss/cache/pojo/factory ...
Ben Wang
bwang at jboss.com
Tue Oct 31 01:57:28 EST 2006
User: bwang
Date: 06/10/31 01:57:28
Modified: src-50/org/jboss/cache/pojo/factory PCacheFactory.java
Log:
Refactored the DefaultCacheFactory to use the static create methods.
Revision Changes Path
1.2 +0 -18 JBossCache/src-50/org/jboss/cache/pojo/factory/PCacheFactory.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: PCacheFactory.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src-50/org/jboss/cache/pojo/factory/PCacheFactory.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- PCacheFactory.java 8 Sep 2006 05:36:15 -0000 1.1
+++ PCacheFactory.java 31 Oct 2006 06:57:28 -0000 1.2
@@ -20,22 +20,4 @@
*/
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