use of javax.jcr.observation.EventListenerIterator in project jackrabbit by apache.
the class ObservationManagerImpl method dispose.
/**
* Unregisters all EventListeners.
*/
public void dispose() {
try {
EventListenerIterator it = getRegisteredEventListeners();
while (it.hasNext()) {
EventListener l = it.nextEventListener();
log.debug("removing EventListener: " + l);
removeEventListener(l);
}
} catch (RepositoryException e) {
log.error("Internal error: Unable to dispose ObservationManager.", e);
}
}
Aggregations