|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.Application org.apache.wicket.protocol.http.WebApplication org.apache.wicket.spring.SpringWebApplication
SpringBean
annotations for
injection rather then this spring-specific application subclass with its helpers. To setup
SpringBean
add the following line to your WebApplication
subclass init method
addComponentInstantiationListener(new SpringComponentInjector(this));
@Deprecated public abstract class SpringWebApplication
Base class for spring aware wicket web application object. This class has helper methods to
create lazy init proxies based on spring beans, as well as an implementation of ISpringContextLocator
.
Field Summary |
---|
Fields inherited from class org.apache.wicket.Application |
---|
CONFIGURATION, CONTEXTPATH, DEPLOYMENT, DEVELOPMENT |
Constructor Summary | |
---|---|
SpringWebApplication()
Deprecated. Construct. |
Method Summary | |
---|---|
protected Object |
createSpringBeanProxy(Class<?> clazz)
Deprecated. Creates a proxy for a spring bean that is safe to put into session and serialize |
protected Object |
createSpringBeanProxy(Class<?> clazz,
String beanName)
Deprecated. Creates a proxy for a spring bean that is safe to put into session and serialize |
ISpringContextLocator |
getSpringContextLocator()
Deprecated. Retrieves the spring application context locator object |
protected org.springframework.context.ApplicationContext |
internalGetApplicationContext()
Deprecated. Retrieves the spring application context associated with this application object This method is protected and named internalGetApplicationContext so that the subclass can choose whether or not to add a public getApplicationContext() method |
protected void |
internalInit()
Deprecated. THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SpringWebApplication()
Method Detail |
---|
protected void internalInit()
WebApplication
<init-param><param-name>configuration</param-name>
). If not
found check the servlet context init parameter
<context-param><param-name6gt;configuration</param-name>
). If the
parameter is "development" (which is default), settings appropriate for development are set.
If it's "deployment" , deployment settings are used. If development is specified and a
"sourceFolder" init parameter is also set, then resources in that folder will be polled for
changes.
internalInit
in class WebApplication
Application.internalInit()
public final void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
org.springframework.context.ApplicationContextAware#setApplicationContext(org.
springframework.context.ApplicationContext)
protected final org.springframework.context.ApplicationContext internalGetApplicationContext()
public ISpringContextLocator getSpringContextLocator()
protected Object createSpringBeanProxy(Class<?> clazz, String beanName)
clazz
- class of spring beanbeanName
- name of spring bean
protected Object createSpringBeanProxy(Class<?> clazz)
clazz
- class of spring bean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |