Package org.dspace.event
Class BasicDispatcher
java.lang.Object
org.dspace.event.Dispatcher
org.dspace.event.BasicDispatcher
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a consumer profile to the end of the list.voidDispatch all events added to this Context according to configured consumers.Methods inherited from class org.dspace.event.Dispatcher
getConsumers, getIdentifier
-
Constructor Details
-
BasicDispatcher
-
-
Method Details
-
addConsumerProfile
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
Dispatch all events added to this Context according to configured consumers.- Specified by:
dispatchin classDispatcher- Parameters:
ctx- the execution context
-