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 / EventListener.java
index ee03b7b007d0e8f10a33bfbe41f3d66c07d4ef2e..251417ac2946c42405a7af85037c1f4089615a58 100644 (file)
@@ -17,9 +17,6 @@ package org.wamblee.xmlrouter.listener;
 
 import java.util.List;
 
-import javax.print.attribute.standard.Destination;
-
-import org.wamblee.xmlrouter.common.Id;
 import org.wamblee.xmlrouter.config.Transformation;
 
 /**
@@ -37,7 +34,7 @@ public interface EventListener {
      *            Event information.
      * @param aSequence
      *            Sequence of transformations performed.
-     * @param aDestination
+     * @param aDestinationId
      *            Id of the destination the event was delivered to.
      * @param aDestinationName
      *            Destination name.
@@ -45,8 +42,7 @@ public interface EventListener {
      *            Whether or not event delivery succeeded.
      */
     void delivered(EventInfo aInfo, List<Transformation> aSequence,
-        Id<Destination> aDestination, String aDestinationName,
-        boolean aSuccessFlag);
+        long aDestinationId, String aDestinationName, boolean aSuccessFlag);
 
     /**
      * Called when an event could not be delivered to any destination.