Class PortletConfigPropertySource
- java.lang.Object
- org.springframework.core.env.PropertySource<T>
- org.springframework.core.env.EnumerablePropertySource<PortletConfig>
- org.springframework.web.portlet.context.PortletConfigPropertySource
public class PortletConfigPropertySource extends EnumerablePropertySource<PortletConfig>
PropertySource
that reads init parameters from aPortletConfig
object.- Since:
- 3.1
- Author:
- Chris Beams
- See Also:
PortletContextPropertySource
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.core.env.PropertySource
PropertySource.StubPropertySource
Field Summary
Fields inherited from class org.springframework.core.env.PropertySource
logger, name, source
Constructor Summary
Constructors Constructor Description PortletConfigPropertySource(String name, PortletConfig portletConfig)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getProperty(String name)
Return the value associated with the given name, ornull
if not found.String[]
getPropertyNames()
Return the names of all properties contained by the source object (nevernull
).Methods inherited from class org.springframework.core.env.EnumerablePropertySource
containsProperty
Constructor Detail
PortletConfigPropertySource
public PortletConfigPropertySource(String name, PortletConfig portletConfig)
Method Detail
getPropertyNames
public String[] getPropertyNames()
Description copied from class:EnumerablePropertySource
Return the names of all properties contained by the source object (nevernull
).- Specified by:
getPropertyNames
in classEnumerablePropertySource<PortletConfig>
getProperty
public String getProperty(String name)
Description copied from class:PropertySource
Return the value associated with the given name, ornull
if not found.- Specified by:
getProperty
in classPropertySource<PortletConfig>
- Parameters:
name
- the property to find- See Also:
PropertyResolver.getRequiredProperty(String)