类 PortletContextPropertySource
- java.lang.Object
- org.springframework.core.env.PropertySource<T>
- org.springframework.core.env.EnumerablePropertySource<PortletContext>
- org.springframework.web.portlet.context.PortletContextPropertySource
public class PortletContextPropertySource extends EnumerablePropertySource<PortletContext>
PropertySourcethat reads init parameters from aPortletContextobject.- 从以下版本开始:
- 3.1
- 作者:
- Chris Beams
- 另请参阅:
PortletConfigPropertySource
嵌套类概要
从类继承的嵌套类/接口 org.springframework.core.env.PropertySource
PropertySource.StubPropertySource
字段概要
从类继承的字段 org.springframework.core.env.PropertySource
logger, name, source
构造器概要
构造器 构造器 说明 PortletContextPropertySource(String name, PortletContext portletContext)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetProperty(String name)Return the value associated with the given name, ornullif not found.String[]getPropertyNames()Return the names of all properties contained by the source object (nevernull).从类继承的方法 org.springframework.core.env.EnumerablePropertySource
containsProperty
构造器详细资料
PortletContextPropertySource
public PortletContextPropertySource(String name, PortletContext portletContext)
方法详细资料
getPropertyNames
public String[] getPropertyNames()
从类复制的说明:EnumerablePropertySourceReturn the names of all properties contained by the source object (nevernull).
getProperty
public String getProperty(String name)
从类复制的说明:PropertySourceReturn the value associated with the given name, ornullif not found.- 指定者:
getProperty在类中PropertySource<PortletContext>- 参数:
name- the property to find- 另请参阅:
PropertyResolver.getRequiredProperty(String)