introduction of EventInfo.
[xmlrouter] / listener / src / main / java / org / wamblee / xmlrouter / listener / EventListener.java
index a7a5b5a97b592d4edec19bbdc18204e589310fbd..ee03b7b007d0e8f10a33bfbe41f3d66c07d4ef2e 100644 (file)
@@ -18,7 +18,6 @@ package org.wamblee.xmlrouter.listener;
 import java.util.List;
 
 import javax.print.attribute.standard.Destination;
-import javax.xml.transform.dom.DOMSource;
 
 import org.wamblee.xmlrouter.common.Id;
 import org.wamblee.xmlrouter.config.Transformation;
@@ -34,12 +33,8 @@ public interface EventListener {
     /**
      * Called when an event is delivered to a destination.
      * 
-     * @param aDocumentType
-     *            Document type.
-     * @param aEventId
-     *            Unique id for the original event.
-     * @param aEvent
-     *            The event.
+     * @param aInfo
+     *            Event information.
      * @param aSequence
      *            Sequence of transformations performed.
      * @param aDestination
@@ -49,19 +44,15 @@ public interface EventListener {
      * @param aSuccessFlag
      *            Whether or not event delivery succeeded.
      */
-    void delivered(String aDocumentType, Id<DOMSource> aEventId,
-        DOMSource aEvent, List<Transformation> aSequence,
+    void delivered(EventInfo aInfo, List<Transformation> aSequence,
         Id<Destination> aDestination, String aDestinationName,
         boolean aSuccessFlag);
 
     /**
      * Called when an event could not be delivered to any destination.
      * 
-     * @param aEventId
-     *            Unique id for the original event.
-     * @param aEvent
-     *            Event.
+     * @param aInfo
+     *            Event info.
      */
-    void notDelivered(String aDocumentType, Id<DOMSource> aEventId,
-        DOMSource aEvent);
+    void notDelivered(EventInfo aInfo);
 }