[jboss-cvs] JBossCache/src/org/jboss/cache/util ...
Manik Surtani
msurtani at jboss.com
Sat Dec 30 12:50:07 EST 2006
User: msurtani
Date: 06/12/30 12:50:07
Modified: src/org/jboss/cache/util setCache.java
Log:
Major changes to restructure cache and node object model
Revision Changes Path
1.2 +22 -19 JBossCache/src/org/jboss/cache/util/setCache.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: setCache.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/util/setCache.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- setCache.java 18 May 2006 15:46:18 -0000 1.1
+++ setCache.java 30 Dec 2006 17:50:07 -0000 1.2
@@ -21,30 +21,33 @@
*/
package org.jboss.cache.util;
-import org.jboss.cache.TreeCache;
-import org.jboss.cache.TreeCacheView2;
-
import bsh.CallStack;
import bsh.Interpreter;
+import org.jboss.cache.CacheImpl;
+import org.jboss.cache.TreeCacheView2;
/**
- * Custom beanshell setCache(TreeCache) command allowing beanshell user to
- * set TreeCache reference being displayed in a JTree of TreeCacheView2 utility.
+ * Custom beanshell setCache(CacheImpl) command allowing beanshell user to
+ * set CacheImpl reference being displayed in a JTree of TreeCacheView2 utility.
* Class name is intentionally violating java conventions to follow beanshell
* command naming conventions.
*
+ * @version $Id$
* @see org.jboss.cache.TreeCacheView2
* @see http://www.beanshell.org/
- *
- * @version $Id$
*/
-public class setCache {
+public class setCache
+{
public static void invoke(Interpreter env, CallStack callstack,
- TreeCache tree) {
+ CacheImpl cache)
+ {
- try {
- TreeCacheView2.setCache(tree);
- } catch (Exception ex) {
+ try
+ {
+ TreeCacheView2.setCache(cache);
+ }
+ catch (Exception ex)
+ {
ex.printStackTrace();
}
}
More information about the jboss-cvs-commits
mailing list