public class EventProcessorRegistry extends Object
event processors
that allow for simple
registration
Constructor and Description |
---|
EventProcessorRegistry() |
Modifier and Type | Method and Description |
---|---|
EventProcessor |
getProcessor(String eventName)
Get the processor that must handle events with the given name
|
void |
register(String eventName,
EventProcessor processor)
Register a processor for a given event name
|
public void register(String eventName, EventProcessor processor)
eventName
- the name of the eventprocessor
- the processor that will handle the eventpublic EventProcessor getProcessor(String eventName)
eventName
- the name of the even to be processedCopyright © 2014. All rights reserved.