Class ServletConfigPropertySource
java.lang.Object
org.springframework.core.env.PropertySource<T>
org.springframework.core.env.EnumerablePropertySource<ServletConfig>
org.springframework.web.context.support.ServletConfigPropertySource
PropertySource
that reads init parameters from a ServletConfig
object.- Since:
- 3.1
- Author:
- Chris Beams
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.core.env.PropertySource
PropertySource.StubPropertySource
-
Field Summary
Fields inherited from class org.springframework.core.env.PropertySource
logger, name, source
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetProperty
(String name) Return the value associated with the given name, ornull
if not found.String[]
Return the names of all properties contained by the source object (nevernull
).Methods inherited from class org.springframework.core.env.EnumerablePropertySource
containsProperty
-
Constructor Details
-
ServletConfigPropertySource
-
-
Method Details
-
getPropertyNames
Description copied from class:EnumerablePropertySource
Return the names of all properties contained by the source object (nevernull
).- Specified by:
getPropertyNames
in classEnumerablePropertySource<ServletConfig>
-
getProperty
Description copied from class:PropertySource
Return the value associated with the given name, ornull
if not found.- Specified by:
getProperty
in classPropertySource<ServletConfig>
- Parameters:
name
- the property to find- See Also:
-