|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectwicket.injection.ComponentInjector
wicket.spring.injection.annot.SpringComponentInjector
public class SpringComponentInjector
IComponentInstantiationListener that injects component properties
annotated with SpringBean annotations.
To install in yourapplication.init() call
addComponentInstantiationListener(new SpringComponentInjector(this));
Non-wicket components such as Session, Model, and any other
pojo can be injected by calling
InjectorHolder.getInjector().inject(this) in their
constructor.
| Constructor Summary | |
|---|---|
SpringComponentInjector(wicket.protocol.http.portlet.PortletApplication portletapp)
Constructor for portlet applications |
|
SpringComponentInjector(wicket.protocol.http.WebApplication webapp)
Constructor used when spring application context is declared in the spring standard way and can be located through WebApplicationContextUtils.getRequiredWebApplicationContext(ServletContext) |
|
SpringComponentInjector(wicket.protocol.http.WebApplication webapp,
org.springframework.context.ApplicationContext ctx)
Constructor |
|
| Method Summary |
|---|
| Methods inherited from class wicket.injection.ComponentInjector |
|---|
onInstantiation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SpringComponentInjector(wicket.protocol.http.WebApplication webapp)
WebApplicationContextUtils.getRequiredWebApplicationContext(ServletContext)
webapp - wicket web application
public SpringComponentInjector(wicket.protocol.http.WebApplication webapp,
org.springframework.context.ApplicationContext ctx)
webapp - wicket web applicationctx - spring's application contextpublic SpringComponentInjector(wicket.protocol.http.portlet.PortletApplication portletapp)
portletapp -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||