[jboss-cvs] JBossCache/etc ...
Ben Wang
bwang at jboss.com
Tue Oct 31 01:57:29 EST 2006
User: bwang
Date: 06/10/31 01:57:29
Modified: etc plain.bsh
Log:
Refactored the DefaultCacheFactory to use the static create methods.
Revision Changes Path
1.4 +1 -1 JBossCache/etc/plain.bsh
(In the diff below, changes in quantity of whitespace are not shown.)
Index: plain.bsh
===================================================================
RCS file: /cvsroot/jboss/JBossCache/etc/plain.bsh,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- plain.bsh 26 Sep 2006 10:26:09 -0000 1.3
+++ plain.bsh 31 Oct 2006 06:57:29 -0000 1.4
@@ -22,6 +22,6 @@
tx = (UserTransaction)new InitialContext(prop).lookup("UserTransaction");
// This will start the cache automatically
-Cache cache = new DefaultCacheFactory().createCache("META-INF/replSync-service.xml");
+Cache cache = DefaultCacheFactory.createCache("META-INF/replSync-service.xml");
cache.put(Fqn.fromString("/a/b/c"), "key1", "val1");
\ No newline at end of file
More information about the jboss-cvs-commits
mailing list