| java.lang.Object org.apache.wicket.guice.GuiceComponentInjector
GuiceComponentInjector | public class GuiceComponentInjector implements IComponentInstantiationListener(Code) | | Injects fields/members of components using Guice.
Add this to your application in its
Application.init method like
so:
addComponentInstantiationListener(new GuiceComponentInjector(this));
There are different constructors for this object depending on how you want to
wire things. See the javadoc for the constructors for more information.
author: Alastair Maw |
Constructor Summary | |
public | GuiceComponentInjector(Application app) Creates a new Wicket GuiceComponentInjector instance.
Internally this will create a new Guice
Injector instance, with
no
Module instances. | public | GuiceComponentInjector(Application app, Module... modules) Creates a new Wicket GuiceComponentInjector instance, using the supplied
Guice
Module instances to create a new Guice
Injector instance internally. | public | GuiceComponentInjector(Application app, Injector injector) Creates a new Wicket GuiceComponentInjector instance, using the provided
Guice
Injector instance. |
GuiceComponentInjector | public GuiceComponentInjector(Application app)(Code) | | Creates a new Wicket GuiceComponentInjector instance.
Internally this will create a new Guice
Injector instance, with
no
Module instances. This is only useful if your beans have
appropriate
ImplementedBy annotations on them so that they can be
automatically picked up with no extra configuration code.
Parameters: app - |
GuiceComponentInjector | public GuiceComponentInjector(Application app, Module... modules)(Code) | | Creates a new Wicket GuiceComponentInjector instance, using the supplied
Guice
Module instances to create a new Guice
Injector instance internally.
Parameters: app - Parameters: modules - |
GuiceComponentInjector | public GuiceComponentInjector(Application app, Injector injector)(Code) | | Creates a new Wicket GuiceComponentInjector instance, using the provided
Guice
Injector instance.
Parameters: app - Parameters: modules - |
|
|