org.alfresco.bm.event
Class EventProcessorRegistry

java.lang.Object
  extended by 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

Constructor Summary
EventProcessorRegistry()
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventProcessorRegistry

public EventProcessorRegistry()
Method Detail

register

public void register(String eventName,
                     EventProcessor processor)
Register a processor for a given event name

Parameters:
eventName - the name of the event
processor - 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.