org.springframework.web.servlet
Class ServletConfigPropertyValues
- class ServletConfigPropertyValues
- implements PropertyValues
PropertyValues implementation created from ServetConfig parameters.
This class is immutable once initialized.
- Author:
- Rod Johnson
ServletConfigPropertyValues
public ServletConfigPropertyValues(ServletConfig config)
throws ServletException
- Create a new ServletConfigPropertyValues object.
- Parameters:
- config - ServletConfig we'll use to take PropertyValues from
- Throws:
- ServletException - should never be thrown from this method
ServletConfigPropertyValues
public ServletConfigPropertyValues(ServletConfig config, List requiredProperties)
throws ServletException
- Creates new ServletConfigPropertyValues object.
- Parameters:
- config - ServletConfig we'll use to take PropertyValues from
- requiredProperties - array of property names we need, where
we can't accept default values
- Throws:
- ServletException - if any required properties are missing
changesSince
public PropertyValues changesSince(PropertyValues old)
contains
public boolean contains(String propertyName)
getPropertyValue
public PropertyValue getPropertyValue(String propertyName)
getPropertyValues
public PropertyValue[] getPropertyValues()
to Class org.springframework.beans.MutablePropertyValues- PropertyValues delegate. We use delegation rather than simply subclass
MutablePropertyValues as we don't want to expose MutablePropertyValues's
update methods. This class is immutable once initialized.