public class ServletConfigPropertySource extends EnumerablePropertySource<javax.servlet.ServletConfig>
PropertySource that reads init parameters from a ServletConfig object.ServletContextPropertySourcePropertySource.StubPropertySourceEMPTY_NAMES_ARRAY, loggername, source| Constructor and Description |
|---|
ServletConfigPropertySource(String name,
javax.servlet.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). |
containsPropertypublic ServletConfigPropertySource(String name, javax.servlet.ServletConfig servletConfig)
public String[] getPropertyNames()
EnumerablePropertySourcenull).getPropertyNames in class EnumerablePropertySource<javax.servlet.ServletConfig>public String getProperty(String name)
PropertySourcenull if not found.getProperty in class PropertySource<javax.servlet.ServletConfig>name - the property to findPropertyResolver.getRequiredProperty(String)Copyright © 2015. All rights reserved.