hchar 2005/01/27 02:57:06
Modified: sandbox/yajcache/src/org/apache/jcs/yajcache/event
CacheChangeEvent.java
Log:
add displatch method
Revision Changes Path
1.2 +8 -1
jakarta-turbine-jcs/sandbox/yajcache/src/org/apache/jcs/yajcache/event/CacheChangeEvent.java
Index: CacheChangeEvent.java
===================================================================
RCS file:
/home/cvs/jakarta-turbine-jcs/sandbox/yajcache/src/org/apache/jcs/yajcache/event/CacheChangeEvent.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- CacheChangeEvent.java 24 Jan 2005 10:29:21 -0000 1.1
+++ CacheChangeEvent.java 27 Jan 2005 10:57:06 -0000 1.2
@@ -16,8 +16,9 @@
package org.apache.jcs.yajcache.event;
-import org.apache.jcs.yajcache.annotate.*;
+import org.apache.jcs.yajcache.lang.annotation.*;
import org.apache.jcs.yajcache.core.ICache;
+import org.apache.jcs.yajcache.core.ICacheChangeHandler;
/**
*
* @author Hanson Char
@@ -28,7 +29,13 @@
protected CacheChangeEvent(@NonNullable ICache<V> cache) {
super(cache);
}
+ /** Returns the cache which is the source of the events. */
protected @NonNullable ICache<V> getCache() {
return (ICache<V>)super.getSource();
}
+ /**
+ * Dispatches the event handling to the specific method invokation of the
+ * given handler.
+ */
+ public abstract boolean dispatch(@NonNullable ICacheChangeHandler<V>
handler);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]