[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/pojo/passivation ...
Jason Thomas Greene
jgreene at jboss.com
Mon Jul 2 16:32:36 EDT 2007
User: jgreene
Date: 07/07/02 16:32:36
Modified: tests/functional/org/jboss/cache/pojo/passivation
LocalTest.java
Log:
Fix listener
Revision Changes Path
1.7 +5 -3 JBossCache/tests/functional/org/jboss/cache/pojo/passivation/LocalTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: LocalTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/pojo/passivation/LocalTest.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- LocalTest.java 28 Jun 2007 16:53:37 -0000 1.6
+++ LocalTest.java 2 Jul 2007 20:32:36 -0000 1.7
@@ -16,6 +16,7 @@
import org.jboss.cache.Fqn;
import org.jboss.cache.notifications.annotation.CacheListener;
import org.jboss.cache.notifications.annotation.NodeActivated;
+import org.jboss.cache.notifications.annotation.NodePassivated;
import org.jboss.cache.notifications.event.NodeEvent;
import org.jboss.cache.pojo.PojoCache;
import org.jboss.cache.pojo.PojoCacheFactory;
@@ -283,11 +284,12 @@
}
}
- public void nodePassivated(Fqn fqn, boolean pre, Map<Object, Object> data)
+ @NodePassivated
+ public void nodePassivated(NodeEvent ne)
{
- if (pre)
+ if (!ne.isPre())
{
- System.out.println("nodePassivated: " + fqn);
+ System.out.println("nodePassivated: " + ne.getFqn());
passivation++;
}
}
More information about the jboss-cvs-commits
mailing list