cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r398626 - /cocoon/trunk/blocks/cocoon-portal/cocoon-portal-impl/src/main/java/org/apache/cocoon/portal/event/impl/DefaultEventManager.java
Date Mon, 01 May 2006 15:34:54 GMT
Author: cziegeler
Date: Mon May  1 08:34:53 2006
New Revision: 398626

URL: http://svn.apache.org/viewcvs?rev=398626&view=rev
Log:
Fix event manager implementation

Modified:
    cocoon/trunk/blocks/cocoon-portal/cocoon-portal-impl/src/main/java/org/apache/cocoon/portal/event/impl/DefaultEventManager.java

Modified: cocoon/trunk/blocks/cocoon-portal/cocoon-portal-impl/src/main/java/org/apache/cocoon/portal/event/impl/DefaultEventManager.java
URL: http://svn.apache.org/viewcvs/cocoon/trunk/blocks/cocoon-portal/cocoon-portal-impl/src/main/java/org/apache/cocoon/portal/event/impl/DefaultEventManager.java?rev=398626&r1=398625&r2=398626&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-portal/cocoon-portal-impl/src/main/java/org/apache/cocoon/portal/event/impl/DefaultEventManager.java
(original)
+++ cocoon/trunk/blocks/cocoon-portal/cocoon-portal-impl/src/main/java/org/apache/cocoon/portal/event/impl/DefaultEventManager.java
Mon May  1 08:34:53 2006
@@ -392,6 +392,16 @@
             }
             return this.parents;
         }
+
+        /**
+         * @see java.lang.Object#equals(java.lang.Object)
+         */
+        public boolean equals(Object obj) {
+            if ( obj instanceof HierarchyInfo ) {
+                return ((HierarchyInfo)obj).className.equals(this.className);
+            }
+            return false;
+        }
     }
 
     protected static final class ReceiverInfo {
@@ -401,6 +411,17 @@
         public ReceiverInfo(Receiver r, Method m) {
             this.receiver = r;
             this.method = m;
+        }
+
+        /**
+         * @see java.lang.Object#equals(java.lang.Object)
+         */
+        public boolean equals(Object obj) {
+            if ( obj instanceof ReceiverInfo ) {
+                return  ((ReceiverInfo)obj).receiver.equals(this.receiver)
+                     && ((ReceiverInfo)obj).method.equals(this.method);
+            }
+            return false;
         }
     }
 }



Mime
View raw message