package dk.thoerup.circuitbreaker.notification; import java.util.ArrayList; import java.util.List; public class AggregateNotifier implements Notifier { List children = new ArrayList(); public void addNotifier(Notifier notif) { children.add(notif); } public void sendNotification(String breakerName, Event evnt) { for (Notifier notif : children) { notif.sendNotification(breakerName, evnt); } } }