Class
Tree
          
SUMMARY: INNER | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD
 

com.newstep.solid.processor
Class DefaultHandlerRegistry
All Implemented Interfaces:
       HandlerRegistry

public class DefaultHandlerRegistry      
implements a simple mapping of handlers to destination ids
Implements:
HandlerRegistry
 
Links:
Implementation Implementation Link
to Interface HandlerRegistry
implements a simple mapping of handlers to destination ids
 
 

Field Summary
private HashMap
private ReentrantLock
Constructor Summary
public void
Method Summary
public void
public ArrayList
public void
Field Detail
handlerMap
private HashMap handlerMap
Multiplicity:
1
 

mapLock
private ReentrantLock mapLock
Multiplicity:
1
 
Constructor Detail
DefaultHandlerRegistry
public void DefaultHandlerRegistry ()
 
initialize the handler map
Stereotype:
create
 
Method Detail
deregisterHandler
public void deregisterHandler (EventHandler handler, Event event)
 
deregisters the specified handler from the registry
Parameters:
event
the event who's handler is being deregistered
 

getHandlers
public ArrayList getHandlers (Event event)
 
retrieves the events associated handler (if one exists)
Parameters:
event
the event who's handler is requested
Return:
the handler associated with the event, or null if none exists
 

registerHandler
public void registerHandler (EventHandler handler, Event event)
 
registers the specified handler with the registry
Parameters:
handler
the event handler to register
event
against which the handler is being registered
 

Class
Tree
          
SUMMARY: INNER | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD