Package org.hippoecm.hst.core.jcr
Interface EventListenersContainer
public interface EventListenersContainer
The container interface for
EventListenerItem
instances.
This is responsible for registering all the event listener item.- Version:
- $Id$
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addEventListenerItem
(EventListenerItem eventListenerItem) Adds an event listener item.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 Details
-
setEventListenerItems
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
Adds an event listener item.- Parameters:
eventListenerItem
-
-
removeEventListenerItem
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.
-