Class EventServiceImpl

java.lang.Object
org.dspace.event.EventServiceImpl
All Implemented Interfaces:
EventService

public class EventServiceImpl extends Object implements 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$
  • Field Details

    • dispatcherFactory

      protected EventServiceImpl.DispatcherPoolFactory dispatcherFactory
    • poolConfig

      protected org.apache.commons.pool2.impl.GenericKeyedObjectPoolConfig poolConfig
    • dispatcherPool

      protected org.apache.commons.pool2.KeyedObjectPool dispatcherPool
    • consumerIndicies

      protected Map<String,Integer> consumerIndicies
    • CONSUMER_PFX

      protected String CONSUMER_PFX
  • Constructor Details

    • EventServiceImpl

      protected EventServiceImpl()
  • Method Details

    • getDispatcher

      public Dispatcher getDispatcher(String name)
      Description copied from interface: EventService
      Get dispatcher for configuration named by "name". Returns cached instance if one exists.
      Specified by:
      getDispatcher in interface EventService
      Parameters:
      name - dispatcher name
      Returns:
      cached instance of dispatcher
    • returnDispatcher

      public void returnDispatcher(String key, Dispatcher disp)
      Specified by:
      returnDispatcher in interface EventService
    • getConsumerIndex

      public int getConsumerIndex(String consumerClass)
      Specified by:
      getConsumerIndex in interface EventService
    • enumerateConsumers

      protected void enumerateConsumers()