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