sendEvent(toNotify, newStatus);
}
private void sendEvent(Set toNotify, DeploymentStatus newStatus) {
assert !Thread.holdsLock(this) : "Trying to send event whilst holding lock";
ProgressEvent event = new ProgressEvent(this, null, newStatus);
for (Iterator i = toNotify.iterator(); i.hasNext();) {
ProgressListener listener = (ProgressListener) i.next();
listener.handleProgressEvent(event);
}
}