public class ServletConfigPropertySource extends EnumerablePropertySource<ServletConfig>
PropertySource
that reads init parameters from a ServletConfig
object.ServletContextPropertySource
PropertySource.StubPropertySource
EMPTY_NAMES_ARRAY, logger
name, source
Constructor and Description |
---|
ServletConfigPropertySource(String name,
ServletConfig servletConfig) |
Modifier and Type | Method and Description |
---|---|
String |
getProperty(String name)
Return the value associated with the given name,
or
null if not found. |
String[] |
getPropertyNames()
Return the names of all properties contained by the
source object (never
null ). |
containsProperty
public ServletConfigPropertySource(String name, ServletConfig servletConfig)
public String[] getPropertyNames()
EnumerablePropertySource
null
).getPropertyNames
in class EnumerablePropertySource<ServletConfig>
public String getProperty(String name)
PropertySource
null
if not found.getProperty
in class PropertySource<ServletConfig>
name
- the property to findPropertyResolver.getRequiredProperty(String)