Package org.dspace.event
Class EventServiceImpl
java.lang.Object
org.dspace.event.EventServiceImpl
- All Implemented Interfaces:
EventService
Class for managing the content event environment. The EventManager mainly
acts as a factory for Dispatchers, which are used by the Context to send
events to consumers. It also contains generally useful utility methods.
Version: $Revision$
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected EventServiceImpl.DispatcherPoolFactoryprotected org.apache.commons.pool2.KeyedObjectPoolprotected org.apache.commons.pool2.impl.GenericKeyedObjectPoolConfigFields inherited from interface org.dspace.event.service.EventService
DEFAULT_DISPATCHER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidintgetConsumerIndex(String consumerClass) getDispatcher(String name) Get dispatcher for configuration named by "name".voidreturnDispatcher(String key, Dispatcher disp)
-
Field Details
-
dispatcherFactory
-
poolConfig
protected org.apache.commons.pool2.impl.GenericKeyedObjectPoolConfig poolConfig -
dispatcherPool
protected org.apache.commons.pool2.KeyedObjectPool dispatcherPool -
consumerIndicies
-
CONSUMER_PFX
-
-
Constructor Details
-
EventServiceImpl
protected EventServiceImpl()
-
-
Method Details
-
getDispatcher
Description copied from interface:EventServiceGet dispatcher for configuration named by "name". Returns cached instance if one exists.- Specified by:
getDispatcherin interfaceEventService- Parameters:
name- dispatcher name- Returns:
- cached instance of dispatcher
-
returnDispatcher
- Specified by:
returnDispatcherin interfaceEventService
-
getConsumerIndex
- Specified by:
getConsumerIndexin interfaceEventService
-
enumerateConsumers
protected void enumerateConsumers()
-