org.springframework.web.portlet.context
Class 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>
PropertySource
that reads init parameters from a PortletContext
object.
- Since:
- 3.1
- Author:
- Chris Beams
- See Also:
PortletConfigPropertySource
Method Summary |
java.lang.String |
getProperty(java.lang.String name)
Return the value associated with the given name, null if not found. |
java.lang.String[] |
getPropertyNames()
Return the names of all properties contained by the source object (never null ). |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
PortletContextPropertySource
public PortletContextPropertySource(java.lang.String name,
PortletContext portletContext)
getPropertyNames
public java.lang.String[] getPropertyNames()
- Description copied from class:
EnumerablePropertySource
- Return the names of all properties contained by the source object (never
null
).
- Specified by:
getPropertyNames
in class EnumerablePropertySource<PortletContext>
getProperty
public java.lang.String getProperty(java.lang.String name)
- Description copied from class:
PropertySource
- Return the value associated with the given name,
null
if not found.
- Specified by:
getProperty
in class PropertySource<PortletContext>
- Parameters:
name
- the property to find- See Also:
PropertyResolver.getRequiredProperty(String)