public interface

ServletContextAware

implements Aware
org.springframework.web.context.ServletContextAware
Known Indirect Subclasses

Class Overview

Interface to be implemented by any object that wishes to be notified of the ServletContext (typically determined by the WebApplicationContext) that it runs in.

Summary

Public Methods
abstract void setServletContext(ServletContext servletContext)
Set the ServletContext that this object runs in.

Public Methods

public abstract void setServletContext (ServletContext servletContext)

Set the ServletContext that this object runs in.

Invoked after population of normal bean properties but before an init callback like InitializingBean's afterPropertiesSet or a custom init-method. Invoked after ApplicationContextAware's setApplicationContext.

Parameters
servletContext ServletContext object to be used by this object