Class SpringComponentInjector

java.lang.Object
org.apache.wicket.injection.Injector
org.apache.wicket.spring.injection.annot.SpringComponentInjector
All Implemented Interfaces:
IComponentInstantiationListener, IBehaviorInstantiationListener

IComponentInstantiationListener that injects component and behavior properties annotated with SpringBean annotations. To install in yourapplication.init() call getComponentInstantiationListeners().add(new SpringComponentInjector(this));

Only Wicket Components and Behaviors are automatically injected, other classes such as Session, Model, and any other POJO can be injected by calling Injector.get().inject(this) in their constructor.

Author:
Igor Vaynberg (ivaynberg), Justin Lee