|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.injection.ComponentInjector
public class ComponentInjector
Enables your application to do dependency injection. To use, register the injector as a
IComponentInstantiationListener
like this:
... (in your application's constructor or init method) addComponentInstantiationListener(new ComponentInjector()); ...
IComponentInstantiationListener
,
Application.addComponentInstantiationListener(org.apache.wicket.application.IComponentInstantiationListener)
Constructor Summary | |
---|---|
ComponentInjector()
Construct. |
Method Summary | |
---|---|
void |
onInstantiation(Component component)
Called for every component that is instantiated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComponentInjector()
Method Detail |
---|
public void onInstantiation(Component component)
IComponentInstantiationListener
onInstantiation
in interface IComponentInstantiationListener
component
- the component that is being instantiated.IComponentInstantiationListener.onInstantiation(org.apache.wicket.Component)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |