+ add old method for backwards compatibility

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2301 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Costin Leau
2009-11-09 19:11:41 +00:00
parent 83ce14dfaf
commit 0f1f01b719
@@ -445,6 +445,20 @@ public abstract class FrameworkServlet extends HttpServletBean
return wac;
}
/**
* Instantiate the WebApplicationContext for this servlet, either a default
* {@link org.springframework.web.context.support.XmlWebApplicationContext}
* or a {@link #setContextClass custom context class}, if set.
* Delegates to #createWebApplicationContext(ApplicationContext).
* @param parent the parent WebApplicationContext to use, or <code>null</code> if none
* @return the WebApplicationContext for this servlet
* @see org.springframework.web.context.support.XmlWebApplicationContext
* @see #createWebApplicationContext(ApplicationContext)
*/
protected WebApplicationContext createWebApplicationContext(WebApplicationContext parent) {
return createWebApplicationContext((ApplicationContext) parent);
}
/**
* Post-process the given WebApplicationContext before it is refreshed
* and activated as context for this servlet.