Package org.hippoecm.hst.core.jcr
Interface EventListenersContainer
-
public interface EventListenersContainer
The container interface forEventListenerItem
instances. This is responsible for registering all the event listener item.- Version:
- $Id$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addEventListenerItem(EventListenerItem eventListenerItem)
Adds an event listener item.List<EventListenerItem>
getEventListenerItems()
Returns a list of the event listener items.boolean
removeEventListenerItem(EventListenerItem eventListenerItem)
Removes an event listener item.void
setEventListenerItems(List<EventListenerItem> eventListenerItems)
Sets event listener items.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.
-
-
-
Method Detail
-
setEventListenerItems
void setEventListenerItems(List<EventListenerItem> eventListenerItems)
Sets event listener items.Note: Implementations could store the event listener items into a copied list. So, the argument should not be assumed as a mutable list.
- Parameters:
eventListenerItems
-
-
addEventListenerItem
void addEventListenerItem(EventListenerItem eventListenerItem)
Adds an event listener item.- Parameters:
eventListenerItem
-
-
removeEventListenerItem
boolean removeEventListenerItem(EventListenerItem eventListenerItem)
Removes an event listener item.- Parameters:
eventListenerItem
-- Returns:
- Returns true if removed.
-
getEventListenerItems
List<EventListenerItem> getEventListenerItems()
Returns a list of the event listener items.Note: Implementations could return a copied list of the event listener items. So, the return should not be assumed as a mutable list.
-
start
void start()
Registers all event listener items and starts the event listener container.
-
stop
void stop()
Removes all event listener items and stop the event listener container.
-
-