spring-web

org.springframework.web.context.support
Class ServletContextPropertySource

java.lang.Object
  extended by org.springframework.core.env.PropertySource<T>
      extended by org.springframework.core.env.EnumerablePropertySource<javax.servlet.ServletContext>
          extended by org.springframework.web.context.support.ServletContextPropertySource

public class ServletContextPropertySource
extends org.springframework.core.env.EnumerablePropertySource<javax.servlet.ServletContext>

PropertySource that reads init parameters from a ServletContext object.

Since:
3.1
Author:
Chris Beams
See Also:
ServletConfigPropertySource

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.EnumerablePropertySource
EMPTY_NAMES_ARRAY, logger
 
Fields inherited from class org.springframework.core.env.PropertySource
name, source
 
Constructor Summary
ServletContextPropertySource(java.lang.String name, javax.servlet.ServletContext servletContext)
           
 
Method Summary
 java.lang.String getProperty(java.lang.String name)
           
 java.lang.String[] getPropertyNames()
           
 
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 Detail

ServletContextPropertySource

public ServletContextPropertySource(java.lang.String name,
                                    javax.servlet.ServletContext servletContext)
Method Detail

getPropertyNames

public java.lang.String[] getPropertyNames()
Specified by:
getPropertyNames in class org.springframework.core.env.EnumerablePropertySource<javax.servlet.ServletContext>

getProperty

public java.lang.String getProperty(java.lang.String name)
Specified by:
getProperty in class org.springframework.core.env.PropertySource<javax.servlet.ServletContext>

spring-web