org.alfresco.bm.event
Class EventProcessorRegistry
java.lang.Object
org.alfresco.bm.event.EventProcessorRegistry
public class EventProcessorRegistry
- extends Object
A registry of event processors that allow for simple
registration
- Since:
- 1.0
- Author:
- Derek Hulley
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EventProcessorRegistry
public EventProcessorRegistry()
register
public void register(String eventName,
EventProcessor processor)
- Register a processor for a given event name
- Parameters:
eventName - the name of the eventprocessor - the processor that will handle the event
getProcessor
public EventProcessor getProcessor(String eventName)
- Get the processor that must handle events with the given name
- Parameters:
eventName - the name of the even to be processed
- Returns:
- a processor for the event or null if it is unmapped
Copyright © 2012. All Rights Reserved.