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