|
Page Created :
WICKET :
Resin-IoC integration
Resin-IoC integration has been created by Scott Ferguson (Mar 24, 2008). Content:Resin 3.1.5 The Application object can use the following capabilities:
The components get @In and @Named injection, but not the other capabilities, since interception conflicts with the Wicket style of allowing components to use "new" for easy instantiation. The three plugin classes are
The application factory is configured in Wicket's <filter> definition as the applicationFactoryClassName. The sample WEB-INF/resin-web.xml might look like the following: <pre><code> <filter filter-name="wicket" <filter-mapping url-pattern="/*" filter-name="wicket"/> </web-app> The component injector is registered with your Application object and looks like the following: <pre><code> public MyApplication extends WebApplication { Unknown macro: {
addComponentInstantiationListener(new ResinComponentInjector());
}
... The Resin wiki page at http://wiki.caucho.com/Wicket |
Unsubscribe or edit your notifications preferences
