Package org.n52.janmayen.event
Class EventListenerRegistrator
- java.lang.Object
-
- org.n52.janmayen.event.EventListenerRegistrator
-
- All Implemented Interfaces:
Constructable,Destroyable
public class EventListenerRegistrator extends Object implements Constructable, Destroyable
Class used to decoupleEventListenerandEventBuscreation.- Since:
- 1.0.0
- See Also:
EventBus,EventListener
-
-
Constructor Summary
Constructors Constructor Description EventListenerRegistrator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()Destroys this object.voidinit()Constructs this object.voidsetListeners(Collection<EventListener> listeners)voidsetServiceEventBus(EventBus serviceEventBus)
-
-
-
Method Detail
-
setListeners
@Inject public void setListeners(Collection<EventListener> listeners)
-
setServiceEventBus
@Inject public void setServiceEventBus(EventBus serviceEventBus)
-
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
-
-