org.dspace.event
Class BasicDispatcher

java.lang.Object
  extended by org.dspace.event.Dispatcher
      extended by org.dspace.event.BasicDispatcher

public class BasicDispatcher
extends Dispatcher

BasicDispatcher implements the primary task of a Dispatcher: it delivers a filtered list of events, synchronously, to a configured list of consumers. It may be extended for more elaborate behavior.

Version:
$Revision: 3762 $

Field Summary
 
Fields inherited from class org.dspace.event.Dispatcher
consumers, identifier, name
 
Constructor Summary
BasicDispatcher(String name)
           
 
Method Summary
 void addConsumerProfile(ConsumerProfile cp)
          Add a consumer to the end of the list.
 void dispatch(Context ctx)
          Dispatch all events added to this Context according to configured consumers.
 
Methods inherited from class org.dspace.event.Dispatcher
getConsumers, getIdentifier
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicDispatcher

public BasicDispatcher(String name)
Method Detail

addConsumerProfile

public void addConsumerProfile(ConsumerProfile cp)
                        throws IllegalArgumentException
Description copied from class: Dispatcher
Add a consumer to the end of the list.

Specified by:
addConsumerProfile in class Dispatcher
Throws:
IllegalArgumentException

dispatch

public void dispatch(Context ctx)
Dispatch all events added to this Context according to configured consumers.

Specified by:
dispatch in class Dispatcher
Parameters:
ctx - the execution context


Copyright © 2010 DuraSpace. All Rights Reserved.