public class PortletContextPropertySource extends EnumerablePropertySource<PortletContext>
PropertySource that reads init parameters from a PortletContext object.PortletConfigPropertySourcePropertySource.StubPropertySourceEMPTY_NAMES_ARRAY, loggername, 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,
null if not found. |
String[] |
getPropertyNames()
Return the names of all properties contained by the source object (never
null). |
containsPropertypublic PortletContextPropertySource(String name, PortletContext portletContext)
public String[] getPropertyNames()
EnumerablePropertySourcenull).getPropertyNames in class EnumerablePropertySource<PortletContext>public String getProperty(String name)
PropertySourcenull if not found.getProperty in class PropertySource<PortletContext>name - the property to findPropertyResolver.getRequiredProperty(String)