public class EventListenersContainerImpl extends Object implements EventListenersContainer
Modifier and Type | Class and Description |
---|---|
protected class |
EventListenersContainerImpl.EventListenersContainerSessionChecker |
Modifier and Type | Field and Description |
---|---|
protected javax.jcr.Credentials |
credentials |
protected List<EventListenerItem> |
eventListenerItems |
protected EventListenersContainerImpl.EventListenersContainerSessionChecker |
eventListenersContainerSessionChecker |
protected boolean |
firstInitializationDone |
protected String |
name |
protected javax.jcr.observation.ObservationManager |
observationManager |
protected javax.jcr.Repository |
repository |
protected javax.jcr.Session |
session |
protected boolean |
sessionLiveCheck |
protected long |
sessionLiveCheckInterval |
protected long |
sessionLiveCheckIntervalOnStartup |
protected boolean |
stopped |
protected javax.jcr.Workspace |
workspace |
Constructor and Description |
---|
EventListenersContainerImpl() |
EventListenersContainerImpl(String name) |
Modifier and Type | Method and Description |
---|---|
void |
addEventListenerItem(EventListenerItem eventListenerItem)
Adds an event listener item.
|
protected void |
doDeinit() |
protected void |
doInit() |
List<EventListenerItem> |
getEventListenerItems()
Returns a list of the event listener items.
|
boolean |
removeEventListenerItem(EventListenerItem eventListenerItem)
Removes an event listener item.
|
void |
setCredentials(javax.jcr.Credentials credentials) |
void |
setEventListenerItems(List<EventListenerItem> eventListenerItems)
Sets event listener items.
|
void |
setRepository(javax.jcr.Repository repository) |
void |
setSessionLiveCheck(boolean sessionLiveCheck) |
void |
setSessionLiveCheckInterval(long sessionLiveCheckInterval) |
void |
setSessionLiveCheckIntervalOnStartup(long sessionLiveCheckIntervalOnStartup) |
void |
start()
Registers all event listener items and
starts the event listener container.
|
void |
stop()
Removes all event listener items and
stop the event listener container.
|
protected String name
protected javax.jcr.Repository repository
protected javax.jcr.Credentials credentials
protected javax.jcr.Session session
protected boolean sessionLiveCheck
protected long sessionLiveCheckIntervalOnStartup
protected long sessionLiveCheckInterval
protected javax.jcr.Workspace workspace
protected javax.jcr.observation.ObservationManager observationManager
protected List<EventListenerItem> eventListenerItems
protected boolean firstInitializationDone
protected EventListenersContainerImpl.EventListenersContainerSessionChecker eventListenersContainerSessionChecker
protected volatile boolean stopped
public EventListenersContainerImpl()
public EventListenersContainerImpl(String name)
public void setRepository(javax.jcr.Repository repository)
public void setCredentials(javax.jcr.Credentials credentials)
public List<EventListenerItem> getEventListenerItems()
EventListenersContainer
Note: Implementations could return a copied list of the event listener items. So, the return should not be assumed as a mutable list.
getEventListenerItems
in interface EventListenersContainer
public void setEventListenerItems(List<EventListenerItem> eventListenerItems)
EventListenersContainer
Note: Implementations could store the event listener items into a copied list. So, the argument should not be assumed as a mutable list.
setEventListenerItems
in interface EventListenersContainer
public void addEventListenerItem(EventListenerItem eventListenerItem)
EventListenersContainer
addEventListenerItem
in interface EventListenersContainer
public boolean removeEventListenerItem(EventListenerItem eventListenerItem)
EventListenersContainer
removeEventListenerItem
in interface EventListenersContainer
public void setSessionLiveCheck(boolean sessionLiveCheck)
public void setSessionLiveCheckIntervalOnStartup(long sessionLiveCheckIntervalOnStartup)
public void setSessionLiveCheckInterval(long sessionLiveCheckInterval)
public void start()
EventListenersContainer
start
in interface EventListenersContainer
protected void doInit()
public void stop()
EventListenersContainer
stop
in interface EventListenersContainer
protected void doDeinit()
Copyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.