org.wamblee.wicket.inject
Class ComponentInstantiationInjector
java.lang.Object
org.wamblee.wicket.inject.ComponentInstantiationInjector
- All Implemented Interfaces:
- org.apache.wicket.application.IComponentInstantiationListener
public class ComponentInstantiationInjector
- extends 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
|
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 |
ComponentInstantiationInjector
public ComponentInstantiationInjector()
- Constructs the component instantiation listener.
onInstantiation
public void onInstantiation(org.apache.wicket.Component aComponent)
- Specified by:
onInstantiation in interface org.apache.wicket.application.IComponentInstantiationListener
Copyright © 2011. All Rights Reserved.