01: /*
02: * Copyright 2006 Day Management AG, Switzerland. All rights reserved.
03: */
04: package javax.jcr.observation;
05:
06: /**
07: * An event listener.
08: * <p>
09: * An <code>EventListener</code> can be registered via the
10: * <code>{@link javax.jcr.observation.ObservationManager}</code> object. Event listeners are
11: * notified asynchronously, and see events after they occur and the transaction
12: * is committed. An event listener only sees events for which the session that
13: * registered it has sufficient access rights.
14: */
15: public interface EventListener {
16:
17: /**
18: * This method is called when a bundle of events is dispatched.
19: *
20: * @param events The event set recieved.
21: */
22: public void onEvent(EventIterator events);
23: }
|