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

Constructor Summary
ServletConfigPropertyValues(ServletConfig config)
          Create a new ServletConfigPropertyValues object.
ServletConfigPropertyValues(ServletConfig config, List requiredProperties)
          Creates new ServletConfigPropertyValues object.

Method Summary
 PropertyValueschangesSince(PropertyValues old)
           
 booleancontains(String propertyName)
           
 PropertyValuegetPropertyValue(String propertyName)
           
 PropertyValue[]getPropertyValues()
           

Constructor Detail

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
Method Detail

changesSince

public PropertyValues changesSince(PropertyValues old)

contains

public boolean contains(String propertyName)

getPropertyValue

public PropertyValue getPropertyValue(String propertyName)

getPropertyValues

public PropertyValue[] getPropertyValues()

Association Links

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.