net.customware.gwt.dispatch.server
Interface ClassActionHandlerRegistry

All Superinterfaces:
ActionHandlerRegistry
All Known Implementing Classes:
GuiceLazyActionHandlerRegistry, LazyActionHandlerRegistry

public interface ClassActionHandlerRegistry
extends ActionHandlerRegistry

Instances of this interface allow ActionHandler classes to be registered for specific Action types. This is typcially to allow lazy-loading of handlers.

Author:
David Peterson
See Also:
LazyActionHandlerRegistry

Method Summary
<A extends Action<R>,R extends Result>
void
addHandlerClass(Class<A> actionClass, Class<? extends ActionHandler<A,R>> handlerClass)
          Registers the specified ActionHandler class with the registry.
<A extends Action<R>,R extends Result>
void
removeHandlerClass(Class<A> actionClass, Class<? extends ActionHandler<A,R>> handlerClass)
          Removes any registration of the specified class, as well as any instances which have been created.
 
Methods inherited from interface net.customware.gwt.dispatch.server.ActionHandlerRegistry
clearHandlers, findHandler
 

Method Detail

addHandlerClass

<A extends Action<R>,R extends Result> void addHandlerClass(Class<A> actionClass,
                                                            Class<? extends ActionHandler<A,R>> handlerClass)
Registers the specified ActionHandler class with the registry. The class will only

Parameters:
actionClass - The action class the handler handles.
handlerClass - The handler class.

removeHandlerClass

<A extends Action<R>,R extends Result> void removeHandlerClass(Class<A> actionClass,
                                                               Class<? extends ActionHandler<A,R>> handlerClass)
Removes any registration of the specified class, as well as any instances which have been created.

Parameters:
handlerClass -


Copyright © 2011 customware.net. All Rights Reserved.