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 SummaryNested classes/interfaces inherited from class PropertySourcePropertySource.StubPropertySource
- 
Field SummaryFields inherited from class PropertySourcelogger, name, source
- 
Constructor SummaryConstructorsConstructorDescriptionServletContextPropertySource(String name, jakarta.servlet.ServletContext servletContext) 
- 
Method SummaryModifier 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 EnumerablePropertySourcecontainsProperty
- 
Constructor Details- 
ServletContextPropertySource
 
- 
- 
Method Details- 
getPropertyNamesDescription copied from class:EnumerablePropertySourceReturn the names of all properties contained by the source object (nevernull).- Specified by:
- getPropertyNamesin class- EnumerablePropertySource<jakarta.servlet.ServletContext>
 
- 
getPropertyDescription copied from class:PropertySourceReturn the value associated with the given name, ornullif not found.- Specified by:
- getPropertyin class- PropertySource<jakarta.servlet.ServletContext>
- Parameters:
- name- the property to find
- See Also:
 
 
-