event listener is now used by the xml router and the publish method of the gateway is
[xmlrouter] / listener / src / main / java / org / wamblee / xmlrouter / listener / EventInfo.java
index 1c4e48ec2cae387c60ba472c0254eb44d88eafd1..4f117380adb4777a3534f8735364d1d2f0213299 100644 (file)
@@ -15,6 +15,8 @@
  */
 package org.wamblee.xmlrouter.listener;
 
+import java.util.List;
+
 import javax.xml.transform.dom.DOMSource;
 
 import org.wamblee.xml.XMLDocument;
@@ -31,15 +33,15 @@ public class EventInfo {
     private long time;
     private String source;
     private Id<DOMSource> id;
-    private String type;
+    private List<String> types;
     private DOMSource event;
 
     public EventInfo(long aTime, String aSource, Id<DOMSource> aId,
-        String aType, DOMSource aEvent) {
+        List<String> aTypes, DOMSource aEvent) {
         time = aTime;
         source = aSource;
         id = aId;
-        type = aType;
+        types = aTypes;
         event = aEvent;
     }
 
@@ -55,12 +57,8 @@ public class EventInfo {
         return id;
     }
 
-    public String getType() {
-        return type;
-    }
-
-    public void setType(String aType) {
-        type = aType;
+    public List<String> getTypes() {
+        return types;
     }
 
     public DOMSource getEvent() {
@@ -74,7 +72,7 @@ public class EventInfo {
         buf.append("time " + time);
         buf.append(", source " + source);
         buf.append(", id " + id);
-        buf.append(", type " + type);
+        buf.append(", types " + types);
         buf.append(", event " + new XMLDocument(event).print(true));
         buf.append(")");
         return buf.toString();