introduction of EventInfo.
[xmlrouter] / listener / src / main / java / org / wamblee / xmlrouter / listener / CompositeEventListener.java
index 15432eaca8f53c9702231a998e110410e929c865..22943db266b0d339b8c015902ddaafd9c14b8d2d 100644 (file)
@@ -22,7 +22,6 @@ import java.util.logging.Level;
 import java.util.logging.Logger;
 
 import javax.print.attribute.standard.Destination;
-import javax.xml.transform.dom.DOMSource;
 
 import org.wamblee.concurrency.ReadLock;
 import org.wamblee.concurrency.WriteLock;
@@ -72,14 +71,13 @@ public class CompositeEventListener implements EventListener {
 
     @Override
     @ReadLock
-    public void delivered(String aDocumentType, Id<DOMSource> aEventId,
-        DOMSource aEvent, List<Transformation> aSequence,
+    public void delivered(EventInfo aInfo, List<Transformation> aSequence,
         Id<Destination> aDestination, String aDestinationName,
         boolean aSuccessFlag) {
         for (EventListener logger : loggers) {
             try {
-                logger.delivered(aDocumentType, aEventId, aEvent, aSequence,
-                    aDestination, aDestinationName, aSuccessFlag);
+                logger.delivered(aInfo, aSequence, aDestination,
+                    aDestinationName, aSuccessFlag);
             } catch (Exception e) {
                 LOGGER.log(Level.WARNING, "Logger threw exception", e);
             }
@@ -88,11 +86,10 @@ public class CompositeEventListener implements EventListener {
 
     @Override
     @ReadLock
-    public void notDelivered(String aDocumentType, Id<DOMSource> aEventId,
-        DOMSource aEvent) {
+    public void notDelivered(EventInfo aInfo) {
         for (EventListener logger : loggers) {
             try {
-                logger.notDelivered(aDocumentType, aEventId, aEvent);
+                logger.notDelivered(aInfo);
             } catch (Exception e) {
                 LOGGER.log(Level.WARNING, "Logger threw exception", e);
             }