Package org.n52.janmayen.event
Class EventListenerRegistrator
java.lang.Object
org.n52.janmayen.event.EventListenerRegistrator
- All Implemented Interfaces:
Constructable,Destroyable
Class used to decouple
EventListener and EventBus creation.- Since:
- 1.0.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Destroys this object.voidinit()Constructs this object.voidsetListeners(Collection<EventListener> listeners) voidsetServiceEventBus(EventBus serviceEventBus)
-
Constructor Details
-
EventListenerRegistrator
public EventListenerRegistrator()
-
-
Method Details
-
setListeners
-
setServiceEventBus
-
init
public void init()Description copied from interface:ConstructableConstructs this object.- Specified by:
initin interfaceConstructable
-
destroy
public void destroy()Description copied from interface:DestroyableDestroys this object.- Specified by:
destroyin interfaceDestroyable
-