Search in sources :

Example 1 with EventListenerIterator

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);
    }
}
Also used : EventListenerIterator(javax.jcr.observation.EventListenerIterator) RepositoryException(javax.jcr.RepositoryException) EventListener(javax.jcr.observation.EventListener)

Aggregations

RepositoryException (javax.jcr.RepositoryException)1 EventListener (javax.jcr.observation.EventListener)1 EventListenerIterator (javax.jcr.observation.EventListenerIterator)1