org.wamblee.wicket.inject
Class ComponentInstantiationInjector

java.lang.Object
  extended by org.wamblee.wicket.inject.ComponentInstantiationInjector
All Implemented Interfaces:
org.apache.wicket.application.IComponentInstantiationListener

public class ComponentInstantiationInjector
extends java.lang.Object
implements org.apache.wicket.application.IComponentInstantiationListener

Component instantiation listener that injects references into a component using the injector mini-framework. Together with an implementation of the mini-framework, Contexts and Dependency Injection support can be provided or for standard Java EE injection into components. Or, other injection frameworks can be used.

To use this injector override WebApplication.init() and add the listener:

 @Override
 protected void init() {
     super.init();
     addComponentInstantiationListener(new ComponentInstantiationInjector());
 }
 

Author:
Erik Brakkee

Constructor Summary
ComponentInstantiationInjector()
          Constructs the component instantiation listener.
 
Method Summary
 void onInstantiation(org.apache.wicket.Component aComponent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentInstantiationInjector

public ComponentInstantiationInjector()
Constructs the component instantiation listener.

Method Detail

onInstantiation

public void onInstantiation(org.apache.wicket.Component aComponent)
Specified by:
onInstantiation in interface org.apache.wicket.application.IComponentInstantiationListener


Copyright © 2022. All Rights Reserved.