Class EventServiceImpl
- java.lang.Object
-
- org.bonitasoft.engine.events.impl.AbstractEventServiceImpl
-
- org.bonitasoft.engine.events.impl.EventServiceImpl
-
- All Implemented Interfaces:
EventService
public class EventServiceImpl extends AbstractEventServiceImpl
- Author:
- Christophe Havard, Matthieu Chaffotte, Laurent Vaills
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,java.util.List<SHandler<SEvent>>>
registeredHandlers
Contains a list of all events type and their registered handlers
-
Constructor Summary
Constructors Constructor Description EventServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addHandlerFor(java.lang.String eventType, SHandler<SEvent> handler)
protected boolean
containsHandlerFor(java.lang.String key)
protected java.util.Collection<SHandler<SEvent>>
getHandlersFor(java.lang.String eventType)
protected org.slf4j.Logger
getLogger()
protected void
removeAllHandlersFor(SHandler<SEvent> handler)
protected void
removeHandlerFor(java.lang.String eventType, SHandler<SEvent> h)
-
Methods inherited from class org.bonitasoft.engine.events.impl.AbstractEventServiceImpl
addHandler, fireEvent, getHandlers, hasHandlers, removeAllHandlers, removeHandler
-
-
-
-
Method Detail
-
getLogger
protected org.slf4j.Logger getLogger()
- Specified by:
getLogger
in classAbstractEventServiceImpl
-
containsHandlerFor
protected boolean containsHandlerFor(java.lang.String key)
- Specified by:
containsHandlerFor
in classAbstractEventServiceImpl
-
getHandlersFor
protected java.util.Collection<SHandler<SEvent>> getHandlersFor(java.lang.String eventType)
- Specified by:
getHandlersFor
in classAbstractEventServiceImpl
-
addHandlerFor
protected void addHandlerFor(java.lang.String eventType, SHandler<SEvent> handler) throws HandlerRegistrationException
- Specified by:
addHandlerFor
in classAbstractEventServiceImpl
- Throws:
HandlerRegistrationException
-
removeAllHandlersFor
protected void removeAllHandlersFor(SHandler<SEvent> handler)
- Specified by:
removeAllHandlersFor
in classAbstractEventServiceImpl
-
removeHandlerFor
protected void removeHandlerFor(java.lang.String eventType, SHandler<SEvent> h) throws HandlerUnregistrationException
- Specified by:
removeHandlerFor
in classAbstractEventServiceImpl
- Throws:
HandlerUnregistrationException
-
-