类 ServletContextParameterFactoryBean
java.lang.Object
cn.taketoday.web.servlet.support.ServletContextParameterFactoryBean
- 所有已实现的接口:
cn.taketoday.beans.factory.Aware,cn.taketoday.beans.factory.FactoryBean<String>,ServletContextAware
public class ServletContextParameterFactoryBean
extends Object
implements cn.taketoday.beans.factory.FactoryBean<String>, ServletContextAware
FactoryBean that retrieves a specific ServletContext init parameter
(that is, a "context-param" defined in web.xml).
Exposes that ServletContext init parameter when used as bean reference,
effectively making it available as named Framework bean instance.
NOTE: you may also use the "contextParameters" default bean which is of type Map, and dereference it using an "#{contextParameters.myKey}" expression to access a specific parameter by name.
- 从以下版本开始:
- 4.0
- 作者:
- Juergen Hoeller
- 另请参阅:
-
字段概要
字段从接口继承的字段 cn.taketoday.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleanvoidsetInitParamName(String initParamName) Set the name of the ServletContext init parameter to expose.voidsetServletContext(ServletContext servletContext) Set theServletContextthat this object runs in.
-
字段详细资料
-
initParamName
-
paramValue
-
-
构造器详细资料
-
ServletContextParameterFactoryBean
public ServletContextParameterFactoryBean()
-
-
方法详细资料
-
setInitParamName
Set the name of the ServletContext init parameter to expose. -
setServletContext
从接口复制的说明:ServletContextAwareSet theServletContextthat this object runs in.Invoked after population of normal bean properties but before an init callback like InitializingBean's
afterPropertiesSetor a custom init-method. Invoked after ApplicationContextAware'ssetApplicationContext.- 指定者:
setServletContext在接口中ServletContextAware- 参数:
servletContext- the ServletContext object to be used by this object- 另请参阅:
-
InitializingBean.afterPropertiesSet()ApplicationContextAware.setApplicationContext(cn.taketoday.context.ApplicationContext)
-
getObject
- 指定者:
getObject在接口中cn.taketoday.beans.factory.FactoryBean<String>
-
getObjectType
- 指定者:
getObjectType在接口中cn.taketoday.beans.factory.FactoryBean<String>
-
isSingleton
public boolean isSingleton()- 指定者:
isSingleton在接口中cn.taketoday.beans.factory.FactoryBean<String>
-