Class ServletConfigPropertySource

java.lang.Object
org.springframework.core.env.PropertySource<T>
org.springframework.core.env.EnumerablePropertySource<ServletConfig>
org.springframework.web.context.support.ServletConfigPropertySource

public class ServletConfigPropertySource extends org.springframework.core.env.EnumerablePropertySource<ServletConfig>
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

    org.springframework.core.env.PropertySource.StubPropertySource
  • Field Summary

    Fields inherited from class org.springframework.core.env.PropertySource

    logger, name, source
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     

    Methods inherited from class org.springframework.core.env.EnumerablePropertySource

    containsProperty

    Methods inherited from class org.springframework.core.env.PropertySource

    equals, getName, getSource, hashCode, named, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ServletConfigPropertySource

      public ServletConfigPropertySource(String name, ServletConfig servletConfig)
  • Method Details

    • getPropertyNames

      public String[] getPropertyNames()
      Specified by:
      getPropertyNames in class org.springframework.core.env.EnumerablePropertySource<ServletConfig>
    • getProperty

      @Nullable public String getProperty(String name)
      Specified by:
      getProperty in class org.springframework.core.env.PropertySource<ServletConfig>