public class

ServletContextPropertySource

extends EnumerablePropertySource<T>
java.lang.Object
   ↳ org.springframework.core.env.PropertySource<T>
     ↳ org.springframework.core.env.EnumerablePropertySource<T>
       ↳ org.springframework.web.context.support.ServletContextPropertySource

Class Overview

PropertySource that reads init parameters from a ServletContext object.

Summary

[Expand]
Inherited Fields
From class org.springframework.core.env.EnumerablePropertySource
From class org.springframework.core.env.PropertySource
Public Constructors
ServletContextPropertySource(String name, ServletContext servletContext)
Public Methods
String getProperty(String name)
Return the value associated with the given key, null if not found.
String[] getPropertyNames()
Return the names of all properties contained by the source object (never null).
[Expand]
Inherited Methods
From class org.springframework.core.env.EnumerablePropertySource
From class org.springframework.core.env.PropertySource
From class java.lang.Object

Public Constructors

public ServletContextPropertySource (String name, ServletContext servletContext)

Public Methods

public String getProperty (String name)

Return the value associated with the given key, null if not found.

Parameters
name the property key to find

public String[] getPropertyNames ()

Return the names of all properties contained by the source object (never null).