org.springframework.web.context.support
Class ServletConfigPropertySource
java.lang.Object
org.springframework.core.env.PropertySource<T>
org.springframework.core.env.EnumerablePropertySource<ServletConfig>
org.springframework.web.context.support.ServletConfigPropertySource
public class ServletConfigPropertySource
- extends EnumerablePropertySource<ServletConfig>
PropertySource
that reads init parameters from a ServletConfig
object.
- Since:
- 3.1
- Author:
- Chris Beams
- See Also:
ServletContextPropertySource
ServletConfigPropertySource
public ServletConfigPropertySource(String name,
ServletConfig servletConfig)
getPropertyNames
public 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<ServletConfig>
getProperty
public String getProperty(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<ServletConfig>
- Parameters:
name
- the property to find- See Also:
PropertyResolver.getRequiredProperty(String)