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: 3762 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicDispatcher
public BasicDispatcher(String name)
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.