--- CircuitBreaker/src/dk/thoerup/circuitbreaker/CircuitBreaker.java 2010/10/01 11:40:30 1148 +++ CircuitBreaker/src/dk/thoerup/circuitbreaker/CircuitBreaker.java 2010/10/04 17:36:43 1161 @@ -106,7 +106,7 @@ open.trip(); currentState = open; - notifier.sendNotification(name, event); + notifier.sendNotification(this, event); } } } @@ -115,7 +115,7 @@ synchronized(this) { if (currentState != halfOpen) { // TODO:Is this conditional necessary ?? currentState = halfOpen; - notifier.sendNotification(name, Notifier.Event.BreakerAttemptReset); + notifier.sendNotification(this, Notifier.Event.BreakerAttemptReset); } } @@ -125,7 +125,7 @@ synchronized(this) { if (currentState != closed) { // TODO: Is this conditional necessary ?? internalReset(); - notifier.sendNotification(name, Notifier.Event.BreakerReset); + notifier.sendNotification(this, Notifier.Event.BreakerReset); } } }