Package org.dspace.event
Class BasicDispatcher
- java.lang.Object
-
- org.dspace.event.Dispatcher
-
- 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$
-
-
Field Summary
-
Fields inherited from class org.dspace.event.Dispatcher
consumers, identifier, name
-
-
Constructor Summary
Constructors Constructor Description BasicDispatcher(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddConsumerProfile(ConsumerProfile cp)Add a consumer profile to the end of the list.voiddispatch(Context ctx)Dispatch all events added to this Context according to configured consumers.-
Methods inherited from class org.dspace.event.Dispatcher
getConsumers, getIdentifier
-
-
-
-
Constructor Detail
-
BasicDispatcher
public BasicDispatcher(String name)
-
-
Method Detail
-
addConsumerProfile
public void addConsumerProfile(ConsumerProfile cp) throws IllegalArgumentException
Description copied from class:DispatcherAdd a consumer profile to the end of the list.- Specified by:
addConsumerProfilein classDispatcher- Parameters:
cp- the event consumer profile to add- Throws:
IllegalArgumentException
-
dispatch
public void dispatch(Context ctx)
Dispatch all events added to this Context according to configured consumers.- Specified by:
dispatchin classDispatcher- Parameters:
ctx- the execution context
-
-