Convenient superclass for application objects running in a WebApplicationContext.
Provides getWebApplicationContext, getServletContext, and getTempDir methods.
author: Juergen Hoeller since: 28.08.2003
Return the current application context as WebApplicationContext.
NOTE: Only use this if you actually need to access
WebApplicationContext-specific functionality. Preferably use
getApplicationContext() or getServletContext()
else, to be able to run in non-WebApplicationContext environments as well.
throws: IllegalStateException - if not running in a WebApplicationContext See Also:WebApplicationObjectSupport.getApplicationContext()