Module org.apache.wicket.spring
Package org.apache.wicket.spring
Class AnnotationConfigSpringWebApplicationFactory
java.lang.Object
org.apache.wicket.spring.SpringWebApplicationFactory
org.apache.wicket.spring.AnnotationConfigSpringWebApplicationFactory
- All Implemented Interfaces:
IWebApplicationFactory
A specialization of
SpringWebApplicationFactory
that uses
AnnotationConfigWebApplicationContext
<filter> <filter-name>MyApplication</filter-name> <filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class> <init-param> <param-name>applicationFactoryClassName</param-name> <param-value>org.apache.wicket.spring.AnnotationConfigSpringWebApplicationFactory</param-value> </init-param> <init-param> <param-name>contextConfigLocation</param-name> <param-value>com.example.MySpringConfig</param-value> </init-param> </filter>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.web.context.ConfigurableWebApplicationContext
Factory method used to create a new instance of the web application context, by default an instance ofXmlWebApplicationContext
will be created.Methods inherited from class org.apache.wicket.spring.SpringWebApplicationFactory
createApplication, createWebApplicationContext, destroy, getContextConfigLocation, postProcessWebApplicationContext
-
Constructor Details
-
AnnotationConfigSpringWebApplicationFactory
-
-
Method Details
-
newApplicationContext
Description copied from class:SpringWebApplicationFactory
Factory method used to create a new instance of the web application context, by default an instance ofXmlWebApplicationContext
will be created.- Overrides:
newApplicationContext
in classSpringWebApplicationFactory
- Returns:
- application context instance
-