net.customware.gwt.dispatch.server.guice
Class GuiceLazyActionHandlerRegistry

java.lang.Object
  extended by net.customware.gwt.dispatch.server.LazyActionHandlerRegistry
      extended by net.customware.gwt.dispatch.server.guice.GuiceLazyActionHandlerRegistry
All Implemented Interfaces:
ActionHandlerRegistry, ClassActionHandlerRegistry

public class GuiceLazyActionHandlerRegistry
extends LazyActionHandlerRegistry

This will use Guice to create instances of registered ActionHandlers on in a lazy manner. That is, they are only created upon the first request of a handler for the Action it is registered with, rather than requiring the class to be constructed when the registry is initialised.

Author:
David Peterson

Constructor Summary
GuiceLazyActionHandlerRegistry(com.google.inject.Injector injector)
           
 
Method Summary
protected  ActionHandler<?,?> createInstance(Class<? extends ActionHandler<?,?>> handlerClass)
           
 
Methods inherited from class net.customware.gwt.dispatch.server.LazyActionHandlerRegistry
addHandlerClass, clearHandlers, findHandler, removeHandlerClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuiceLazyActionHandlerRegistry

@Inject
public GuiceLazyActionHandlerRegistry(com.google.inject.Injector injector)
Method Detail

createInstance

protected ActionHandler<?,?> createInstance(Class<? extends ActionHandler<?,?>> handlerClass)
Overrides:
createInstance in class LazyActionHandlerRegistry


Copyright © 2011 customware.net. All Rights Reserved.