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>>>registeredHandlersContains 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 voidaddHandlerFor(java.lang.String eventType, SHandler<SEvent> handler)protected booleancontainsHandlerFor(java.lang.String key)protected java.util.Collection<SHandler<SEvent>>getHandlersFor(java.lang.String eventType)protected org.slf4j.LoggergetLogger()protected voidremoveAllHandlersFor(SHandler<SEvent> handler)protected voidremoveHandlerFor(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:
getLoggerin classAbstractEventServiceImpl
-
containsHandlerFor
protected boolean containsHandlerFor(java.lang.String key)
- Specified by:
containsHandlerForin classAbstractEventServiceImpl
-
getHandlersFor
protected java.util.Collection<SHandler<SEvent>> getHandlersFor(java.lang.String eventType)
- Specified by:
getHandlersForin classAbstractEventServiceImpl
-
addHandlerFor
protected void addHandlerFor(java.lang.String eventType, SHandler<SEvent> handler) throws HandlerRegistrationException- Specified by:
addHandlerForin classAbstractEventServiceImpl- Throws:
HandlerRegistrationException
-
removeAllHandlersFor
protected void removeAllHandlersFor(SHandler<SEvent> handler)
- Specified by:
removeAllHandlersForin classAbstractEventServiceImpl
-
removeHandlerFor
protected void removeHandlerFor(java.lang.String eventType, SHandler<SEvent> h) throws HandlerUnregistrationException- Specified by:
removeHandlerForin classAbstractEventServiceImpl- Throws:
HandlerUnregistrationException
-
-