directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: rev 56233 - in incubator/directory/seda/trunk/src/java/org/apache/seda/event: . filter
Date Mon, 01 Nov 2004 13:54:01 GMT
Author: trustin
Date: Mon Nov  1 05:54:01 2004
New Revision: 56233

Added:
   incubator/directory/seda/trunk/src/java/org/apache/seda/event/EventFilter.java
      - copied, changed from rev 56229, incubator/directory/seda/trunk/src/java/org/apache/seda/event/Filter.java
   incubator/directory/seda/trunk/src/java/org/apache/seda/event/filter/
Removed:
   incubator/directory/seda/trunk/src/java/org/apache/seda/event/Filter.java
Modified:
   incubator/directory/seda/trunk/src/java/org/apache/seda/event/DefaultEventRouter.java
   incubator/directory/seda/trunk/src/java/org/apache/seda/event/EventRouter.java
   incubator/directory/seda/trunk/src/java/org/apache/seda/event/Subscription.java
Log:
* Renamed seda.event.Filter to seda.event.EventFilter.
* Created seda.event.filter package which will contain various event filters.

Modified: incubator/directory/seda/trunk/src/java/org/apache/seda/event/DefaultEventRouter.java
==============================================================================
--- incubator/directory/seda/trunk/src/java/org/apache/seda/event/DefaultEventRouter.java
(original)
+++ incubator/directory/seda/trunk/src/java/org/apache/seda/event/DefaultEventRouter.java
Mon Nov  1 05:54:01 2004
@@ -53,7 +53,7 @@
      * @see org.apache.seda.event.EventRouter#subscribe(java.lang.Class,
      * org.apache.seda.event.Filter, org.apache.eve.event.Subscriber)
      */
-    public void subscribe(Class type, Filter filter, Subscriber subscriber)
+    public void subscribe(Class type, EventFilter filter, Subscriber subscriber)
     {
         if (!EventObject.class.isAssignableFrom(type))
         {
@@ -129,7 +129,7 @@
      * @see org.apache.seda.event.EventRouter#unsubscribe(java.lang.Class,
      * org.apache.seda.event.Subscriber)
      */
-    public void unsubscribe(Class type, Filter filter, Subscriber subscriber)
+    public void unsubscribe(Class type, EventFilter filter, Subscriber subscriber)
     {
         if (!EventObject.class.isAssignableFrom(type))
         {

Copied: incubator/directory/seda/trunk/src/java/org/apache/seda/event/EventFilter.java (from
rev 56229, incubator/directory/seda/trunk/src/java/org/apache/seda/event/Filter.java)
==============================================================================
--- incubator/directory/seda/trunk/src/java/org/apache/seda/event/Filter.java	(original)
+++ incubator/directory/seda/trunk/src/java/org/apache/seda/event/EventFilter.java	Mon Nov
 1 05:54:01 2004
@@ -27,7 +27,7 @@
  * @author <a href="mailto:directory-dev@incubator.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public interface Filter
+public interface EventFilter
 {
     /**
      * Determines whether or not to inform a subscriber of an event.

Modified: incubator/directory/seda/trunk/src/java/org/apache/seda/event/EventRouter.java
==============================================================================
--- incubator/directory/seda/trunk/src/java/org/apache/seda/event/EventRouter.java	(original)
+++ incubator/directory/seda/trunk/src/java/org/apache/seda/event/EventRouter.java	Mon Nov
 1 05:54:01 2004
@@ -36,7 +36,7 @@
      * @param filter an event filter if any to apply
      * @param subscriber the Subscriber to subscribe
      */
-    void subscribe(Class type, Filter filter, Subscriber subscriber);
+    void subscribe(Class type, EventFilter filter, Subscriber subscriber);
 
     /**
      * Subscribes an event subscriber.

Modified: incubator/directory/seda/trunk/src/java/org/apache/seda/event/Subscription.java
==============================================================================
--- incubator/directory/seda/trunk/src/java/org/apache/seda/event/Subscription.java	(original)
+++ incubator/directory/seda/trunk/src/java/org/apache/seda/event/Subscription.java	Mon Nov
 1 05:54:01 2004
@@ -27,7 +27,7 @@
 public class Subscription
 {
     /** the filter if any used to filter out events */
-    private final Filter filter;
+    private final EventFilter filter;
 
     /** the event class */
     private final Class type;
@@ -43,7 +43,7 @@
      * @param filter the Filter to use weed out unwanted events
      * @param subscriber the subscriber to deliever the event to
      */
-    public Subscription(Class type, Filter filter, Subscriber subscriber)
+    public Subscription(Class type, EventFilter filter, Subscriber subscriber)
     {
         this.type = type;
         this.filter = filter;
@@ -65,7 +65,7 @@
      *
      * @return  The filter
      */
-    public Filter getFilter()
+    public EventFilter getFilter()
     {
         return filter;
     }

Mime
View raw message