X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=listener%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fxmlrouter%2Flistener%2FEventListener.java;h=a2e289a726c064f24869f8840fea19f8efa880f8;hb=HEAD;hp=a7a5b5a97b592d4edec19bbdc18204e589310fbd;hpb=fdc1e06b2b99816e68d8fe3e8a8f823d38ee31e6;p=xmlrouter diff --git a/listener/src/main/java/org/wamblee/xmlrouter/listener/EventListener.java b/listener/src/main/java/org/wamblee/xmlrouter/listener/EventListener.java index a7a5b5a..a2e289a 100644 --- a/listener/src/main/java/org/wamblee/xmlrouter/listener/EventListener.java +++ b/listener/src/main/java/org/wamblee/xmlrouter/listener/EventListener.java @@ -17,10 +17,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,34 +30,23 @@ 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 + * @param aDestinationId * Id of the destination the event was delivered to. - * @param aDestinationName - * Destination name. * @param aSuccessFlag * Whether or not event delivery succeeded. */ - void delivered(String aDocumentType, Id aEventId, - DOMSource aEvent, List aSequence, - Id aDestination, String aDestinationName, - boolean aSuccessFlag); + void delivered(EventInfo aInfo, List aSequence, + String aDestinationId, 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 aEventId, - DOMSource aEvent); + void notDelivered(EventInfo aInfo); }