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()); }
Constructor and Description |
---|
ComponentInstantiationInjector()
Constructs the component instantiation listener.
|
Modifier and Type | Method and Description |
---|---|
void |
onInstantiation(org.apache.wicket.Component aComponent) |
Copyright © 2022. All rights reserved.