net.customware.gwt.dispatch.server
Interface ActionHandlerRegistry

All Known Implementing Classes:
DefaultActionHandlerRegistry

public interface ActionHandlerRegistry


Method Summary
 void addHandler(ActionHandler<?,?> handler)
          Adds the specified ActionHandler to the registry.
 void clearHandlers()
          Clears all registered handlers from the registry.
<A extends Action<R>,R extends Result>
ActionHandler<A,R>
findHandler(A action)
          Searches the registry and returns the first handler which supports the specied action, or null if none is available.
 boolean removeHandler(ActionHandler<?,?> handler)
          Removes the specified handler.
 

Method Detail

addHandler

void addHandler(ActionHandler<?,?> handler)
Adds the specified ActionHandler to the registry.

Parameters:
handler - The handler.

removeHandler

boolean removeHandler(ActionHandler<?,?> handler)
Removes the specified handler.

Parameters:
handler - The handler.
Returns:
true if the handler was previously registered and was successfully removed.

findHandler

<A extends Action<R>,R extends Result> ActionHandler<A,R> findHandler(A action)
Searches the registry and returns the first handler which supports the specied action, or null if none is available.

Parameters:
action - The action.
Returns:
The handler.

clearHandlers

void clearHandlers()
Clears all registered handlers from the registry.



Copyright © 2009 customware.net. All Rights Reserved.