public static class

PropertySource.StubPropertySource

extends PropertySource<T>
java.lang.Object
   ↳ org.springframework.core.env.PropertySource<T>
     ↳ org.springframework.core.env.PropertySource.StubPropertySource

Class Overview

PropertySource to be used as a placeholder in cases where an actual property source cannot be eagerly initialized at application context creation time. For example, a ServletContext-based property source must wait until the ServletContext object is available to its enclosing ApplicationContext. In such cases, a stub should be used to hold the intended default position/order of the property source, then be replaced during context refresh.

Summary

[Expand]
Inherited Fields
From class org.springframework.core.env.PropertySource
Public Constructors
PropertySource.StubPropertySource(String name)
Public Methods
String getProperty(String key)
Return the value associated with the given key, null if not found.
[Expand]
Inherited Methods
From class org.springframework.core.env.PropertySource
From class java.lang.Object

Public Constructors

public PropertySource.StubPropertySource (String name)

Also: SpringCore

Public Methods

public String getProperty (String key)

Also: SpringCore

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

Parameters
key the property key to find