[jboss-cvs] JBossCache/src-50/org/jboss/cache/pojo/impl ...
Ben Wang
bwang at jboss.com
Tue Oct 31 01:59:13 EST 2006
User: bwang
Date: 06/10/31 01:59:13
Modified: src-50/org/jboss/cache/pojo/impl PojoCacheImpl.java
Log:
Refactored DefaultCacheFactory to use static methods.
Revision Changes Path
1.24 +2 -3 JBossCache/src-50/org/jboss/cache/pojo/impl/PojoCacheImpl.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: PojoCacheImpl.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src-50/org/jboss/cache/pojo/impl/PojoCacheImpl.java,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -b -r1.23 -r1.24
--- PojoCacheImpl.java 9 Oct 2006 08:11:34 -0000 1.23
+++ PojoCacheImpl.java 31 Oct 2006 06:59:13 -0000 1.24
@@ -45,7 +45,7 @@
* Implementation class for PojoCache interface
*
* @author Ben Wang
- * @version $Id: PojoCacheImpl.java,v 1.23 2006/10/09 08:11:34 bwang Exp $
+ * @version $Id: PojoCacheImpl.java,v 1.24 2006/10/31 06:59:13 bwang Exp $
*/
public class PojoCacheImpl implements PojoCache, Observer
{
@@ -95,8 +95,7 @@
{
try
{
- DefaultCacheFactory factory = new DefaultCacheFactory();
- cache_ = (CacheSPI)factory.createCache(config, toStart);
+ cache_ = (CacheSPI)DefaultCacheFactory.createCache(config, toStart);
} catch (Exception e)
{
e.printStackTrace();
More information about the jboss-cvs-commits
mailing list