|
||||||||||
| 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 handler instance 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. |
|
void |
setActionHandlers(List<ActionHandler<?,?>> actionHandlers)
Sets the specified actionHandlers as the only action handler held by this registry instance |
|
| 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)
InstanceActionHandlerRegistry
addHandler in interface InstanceActionHandlerRegistryhandler - The action handler.public boolean removeHandler(ActionHandler<?,?> handler)
InstanceActionHandlerRegistry
removeHandler in interface InstanceActionHandlerRegistryhandler - 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)
ActionHandlerRegistrynull if none is available.
findHandler in interface ActionHandlerRegistryaction - The action.
public void setActionHandlers(List<ActionHandler<?,?>> actionHandlers)
actionHandlers - the list of action handler to setpublic void clearHandlers()
ActionHandlerRegistry
clearHandlers in interface ActionHandlerRegistry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||