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
@PreDestroy public void stopListening() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public void onEvent(javax.jcr.observation.EventIterator events)
onEvent
in interface javax.jcr.observation.EventListener
events
- Copyright © 2013-2015 DuraSpace, Inc.. All Rights Reserved.