Class JavaEEComponentInjector

java.lang.Object
org.apache.wicket.injection.Injector
org.wicketstuff.javaee.injection.JavaEEComponentInjector
All Implemented Interfaces:
IComponentInstantiationListener

public class JavaEEComponentInjector extends Injector implements 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 Details

    • JavaEEComponentInjector

      public JavaEEComponentInjector(WebApplication webapp)
      Constructor
      Parameters:
      webapp - wicket web application
    • JavaEEComponentInjector

      public JavaEEComponentInjector(WebApplication webapp, IJndiNamingStrategy namingStrategy)
      Constructor
      Parameters:
      webapp - - wicket web application
      namingStrategy - - a jndi naming strategy to lookup ejb references
  • Method Details