Parameters: listener - The listener. Parameters: document - The document to listen to. throws: ObservationException - if the listener is already registered for this document.
Registers a listener which is notified for all events.
Parameters: listener - The listener. throws: ObservationException - if the listener is already registered.