public class

ServletConfigPropertySource

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

Class Overview

PropertySource that reads init parameters from a ServletConfig object.

Summary

[Expand]
Inherited Fields
From class org.springframework.core.env.EnumerablePropertySource
From class org.springframework.core.env.PropertySource
Public Constructors
ServletConfigPropertySource(String name, ServletConfig servletConfig)
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 ServletConfigPropertySource (String name, ServletConfig servletConfig)

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).