org.apache.wicket.spring
Class SpringWebApplication
java.lang.Object
org.apache.wicket.Application
org.apache.wicket.protocol.http.WebApplication
org.apache.wicket.spring.SpringWebApplication
- All Implemented Interfaces:
- IEventSink, ISessionStore.UnboundListener, org.springframework.context.ApplicationContextAware
Deprecated. when using java5 it is preferrable to use 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
getComponentInstantiationListeners().add(new SpringComponentInjector(this));
@Deprecated
public abstract class SpringWebApplication
- extends WebApplication
- implements org.springframework.context.ApplicationContextAware
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.
- Author:
- Igor Vaynberg (ivaynberg)
|
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. |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Deprecated. |
| Methods inherited from class org.apache.wicket.protocol.http.WebApplication |
addIgnoreMountPath, get, getAjaxRequestTargetListeners, getAjaxRequestTargetProvider, getAndRemoveBufferedResponse, getApplicationKey, getConfigurationType, getFilterFactoryManager, getInitParameter, getMimeType, getResourceFinder, getServletContext, getSessionAttributePrefix, getWicketFilter, hasBufferedResponse, hasFilterFactoryManager, init, internalDestroy, logEventTarget, logResponseTarget, mount, mountPackage, mountPage, mountResource, newAjaxRequestTarget, newSession, newWebRequest, newWebResponse, outputDevelopmentModeWarning, renderXmlDecl, sessionUnbound, setAjaxRequestTargetProvider, setConfigurationType, setServletContext, setWicketFilter, storeBufferedResponse, unmount |
| Methods inherited from class org.apache.wicket.Application |
configure, createRequestCycle, decorateHeaderResponse, exists, fetchCreateAndSetSession, get, getApplicationKeys, getApplicationListeners, getApplicationSettings, getBehaviorInstantiationListeners, getComponentInitializationListeners, getComponentInstantiationListeners, getComponentOnAfterRenderListeners, getComponentPostOnBeforeRenderListeners, getComponentPreOnBeforeRenderListeners, getConverterLocator, getDebugSettings, getExceptionMapperProvider, getExceptionSettings, getFrameworkSettings, getHeaderContributorListenerCollection, getHomePage, getInitializers, getJavaScriptLibrarySettings, getMapperContext, getMarkupSettings, getMetaData, getName, getPageFactory, getPageManagerContext, getPageManagerProvider, getPageRendererProvider, getPageSettings, getRequestCycleListeners, getRequestCycleProvider, getRequestCycleSettings, getRequestLogger, getRequestLoggerSettings, getResourceBundles, getResourceReferenceRegistry, getResourceSettings, getRootRequestMapper, getRootRequestMapperAsCompound, getSecuritySettings, getSessionListeners, getSessionStore, getSessionStoreProvider, getSharedResources, getStoreSettings, initApplication, initializeComponents, newConverterLocator, newMapperContext, newPageFactory, newRequestLogger, newResourceBundles, newResourceReferenceRegistry, newSharedResources, onDestroy, onEvent, setApplicationSettings, setDebugSettings, setExceptionSettings, setFrameworkSettings, setHeaderResponseDecorator, setJavaScriptLibrarySettings, setMarkupSettings, setMetaData, setName, setPageManagerProvider, setPageRendererProvider, setPageSettings, setRequestCycleProvider, setRequestCycleSettings, setRequestLoggerSettings, setResourceSettings, setRootRequestMapper, setSecuritySettings, setSessionStoreProvider, setStoreSettings, usesDeploymentConfig, usesDevelopmentConfig, validateInit |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpringWebApplication
public SpringWebApplication()
- Deprecated.
- Construct.
internalInit
protected void internalInit()
- Deprecated.
- Overrides:
internalInit in class WebApplication
- See Also:
Application.internalInit()
setApplicationContext
public final void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
- Deprecated.
- Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException- See Also:
ApplicationContextAware.setApplicationContext(org.springframework.context.ApplicationContext)
internalGetApplicationContext
protected final 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
- Returns:
- spring application context
getSpringContextLocator
public ISpringContextLocator getSpringContextLocator()
- Deprecated.
- Retrieves the spring application context locator object
- Returns:
- spring application context locator object
createSpringBeanProxy
protected Object createSpringBeanProxy(Class<?> clazz,
String beanName)
- Deprecated.
- Creates a proxy for a spring bean that is safe to put into session and serialize
- Parameters:
clazz - class of spring beanbeanName - name of spring bean
- Returns:
- proxy representing the spring bean
createSpringBeanProxy
protected Object createSpringBeanProxy(Class<?> clazz)
- Deprecated.
- Creates a proxy for a spring bean that is safe to put into session and serialize
- Parameters:
clazz - class of spring bean
- Returns:
- proxy representing the spring bean
Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.