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;
-import org.wamblee.xmlrouter.common.Id;
import org.wamblee.xmlrouter.config.Transformation;
public class CompositeEventListener implements EventListener {
@Override
@ReadLock
- public void delivered(String aDocumentType, Id<DOMSource> aEventId,
- DOMSource aEvent, List<Transformation> aSequence,
- Id<Destination> aDestination, String aDestinationName,
- boolean aSuccessFlag) {
+ public void delivered(EventInfo aInfo, List<Transformation> aSequence,
+ String aDestinationId, boolean aSuccessFlag) {
for (EventListener logger : loggers) {
try {
- logger.delivered(aDocumentType, aEventId, aEvent, aSequence,
- aDestination, aDestinationName, aSuccessFlag);
+ logger
+ .delivered(aInfo, aSequence, aDestinationId, aSuccessFlag);
} catch (Exception e) {
LOGGER.log(Level.WARNING, "Logger threw exception", e);
}
@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);
}