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