org.springframework.web.context.support
Class WebApplicationObjectSupport
java.lang.Object
org.springframework.context.support.ApplicationObjectSupport
org.springframework.web.context.support.WebApplicationObjectSupport
- All Implemented Interfaces:
- ApplicationContextAware
- Direct Known Subclasses:
- AbstractCachingViewResolver, AbstractHandlerMapping, AbstractView, BeanNameViewResolver, TilesConfigurer, WebContentGenerator
- public abstract class WebApplicationObjectSupport
- extends ApplicationObjectSupport
Convenient superclass for application objects running in a WebApplicationContext.
Provides getWebApplicationContext, getServletContext, and getTempDir methods.
- Since:
- 28.08.2003
- Author:
- Juergen Hoeller
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebApplicationObjectSupport
public WebApplicationObjectSupport()
getWebApplicationContext
protected final WebApplicationContext getWebApplicationContext()
- Return the current application context as WebApplicationContext.
getServletContext
protected final ServletContext getServletContext()
- Return the current ServletContext.
getTempDir
protected final File getTempDir()
- Return the temporary directory for the current web application,
as provided by the servlet container.
- Returns:
- the File representing the temporary directory
Copyright (C) 2003-2004 The Spring Framework Project.