8.3.2 Listener Registration

Registration of event listeners is done through the ObservationManager object acquired from the Workspace.

javax.jcr.
Workspace

Observation
Manager

getObservationManager()

Returns the ObservationManager object.

If the implementation does not support observation, an UnsupportedRepositoryOperationException is thrown.

A RepositoryException is thrown if an error occurs.