public class SimpleObserver extends Object implements javax.jcr.observation.EventListener
Constructor and Description |
---|
SimpleObserver() |
Modifier and Type | Method and Description |
---|---|
void |
buildListener()
Register this observer with the JCR event listeners
|
void |
onEvent(javax.jcr.observation.EventIterator events)
Filter JCR events and transform them into our own FedoraEvents.
|
void |
stopListening()
logout of the session
|
public SimpleObserver()
@PostConstruct public void buildListener() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
- if repository exception occurred@PreDestroy public void stopListening() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
- if repository exception occurredpublic void onEvent(javax.jcr.observation.EventIterator events)
onEvent
in interface javax.jcr.observation.EventListener
events
- the JCR eventsCopyright © 2013–2015 DuraSpace, Inc.. All rights reserved.