|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.customware.gwt.dispatch.server.DefaultActionHandlerRegistry
public class DefaultActionHandlerRegistry
Constructor Summary | |
---|---|
DefaultActionHandlerRegistry()
|
Method Summary | ||
---|---|---|
void |
addHandler(ActionHandler<?,?> handler)
Adds the specified ActionHandler to the registry. |
|
void |
clearHandlers()
Clears all registered handlers from the registry. |
|
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultActionHandlerRegistry()
Method Detail |
---|
public void addHandler(ActionHandler<?,?> handler)
ActionHandlerRegistry
ActionHandler
to the registry.
addHandler
in interface ActionHandlerRegistry
handler
- The handler.public boolean removeHandler(ActionHandler<?,?> handler)
ActionHandlerRegistry
removeHandler
in interface ActionHandlerRegistry
handler
- The handler.
true
if the handler was previously registered and
was successfully removed.public <A extends Action<R>,R extends Result> ActionHandler<A,R> findHandler(A action)
ActionHandlerRegistry
null
if none is available.
findHandler
in interface ActionHandlerRegistry
action
- The action.
public void clearHandlers()
ActionHandlerRegistry
clearHandlers
in interface ActionHandlerRegistry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |