public class PortletContextPropertySource extends EnumerablePropertySource<PortletContext>
PropertySource
that reads init parameters from a PortletContext
object.PortletConfigPropertySource
PropertySource.StubPropertySource
logger
name, source
Constructor and Description |
---|
PortletContextPropertySource(String name,
PortletContext portletContext) |
Modifier and Type | Method and Description |
---|---|
String |
getProperty(String name)
Return the value associated with the given name,
or
null if not found. |
String[] |
getPropertyNames()
Return the names of all properties contained by the
source object (never
null ). |
containsProperty
public PortletContextPropertySource(String name, PortletContext portletContext)
public String[] getPropertyNames()
EnumerablePropertySource
null
).getPropertyNames
in class EnumerablePropertySource<PortletContext>
public String getProperty(String name)
PropertySource
null
if not found.getProperty
in class PropertySource<PortletContext>
name
- the property to findPropertyResolver.getRequiredProperty(String)