Package org.wicketstuff.javaee.injection
Class JavaEEComponentInjector
java.lang.Object
org.apache.wicket.injection.Injector
org.wicketstuff.javaee.injection.JavaEEComponentInjector
- All Implemented Interfaces:
IComponentInstantiationListener
This injection must be initialized in the Wicket WebApplication in order to enable Java EE 5
resource injection in Wicket Pages Add the initialization in WebApplication's init() method, e.g.
protected void init() { addComponentInstantiationListener(new JavaEEComponentInjector(this)); }
- Author:
- Filippo Diotalevi
-
Constructor Summary
ConstructorsConstructorDescriptionConstructorJavaEEComponentInjector
(WebApplication webapp, IJndiNamingStrategy namingStrategy) Constructor -
Method Summary
-
Constructor Details
-
JavaEEComponentInjector
Constructor- Parameters:
webapp
- wicket web application
-
JavaEEComponentInjector
Constructor- Parameters:
webapp
- - wicket web applicationnamingStrategy
- - a jndi naming strategy to lookup ejb references
-
-
Method Details
-
inject
-
onInstantiation
- Specified by:
onInstantiation
in interfaceIComponentInstantiationListener
-