Home » Spring-Framework-090522 » org.springframework » web » context » support » [javadoc | source]
public class: ServletContextAttributeFactoryBean [javadoc | source]

All Implemented Interfaces:
    ServletContextAware, FactoryBean

FactoryBean that fetches a specific, existing ServletContext attribute. Exposes that ServletContext attribute when used as bean reference, effectively making it available as named Spring bean instance.

Intended to link in ServletContext attributes that exist before the startup of the Spring application context. Typically, such attributes will have been put there by third-party web frameworks. In a purely Spring-based web application, no such linking in of ServletContext attrutes will be necessary.

Method from org.springframework.web.context.support.ServletContextAttributeFactoryBean Summary:
getObject,   getObjectType,   isSingleton,   setAttributeName,   setServletContext
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.web.context.support.ServletContextAttributeFactoryBean Detail:
 public Object getObject() throws Exception 
 public Class getObjectType() 
 public boolean isSingleton() 
 public  void setAttributeName(String attributeName) 
    Set the name of the ServletContext attribute to expose.
 public  void setServletContext(ServletContext servletContext)