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 Methods |
From class
org.springframework.core.env.PropertySource
boolean
|
containsProperty(String key)
Return whether this PropertySource contains the given key.
|
boolean
|
equals(Object obj)
This PropertySource object is equal to the given object if:
- they are the same instance
- the
name properties for both objects are equal
No properties other than name are evaluated.
|
String
|
getName()
Return the name of this PropertySource
|
abstract
Object
|
getProperty(String key)
Return the value associated with the given key, null if not found.
|
T
|
getSource()
Return the underlying source object for this PropertySource .
|
int
|
hashCode()
Return a hashcode derived from the name property of this PropertySource
object.
|
static
PropertySource<?>
|
named(String name)
Return a PropertySource implementation intended for collection comparison purposes only.
|
String
|
toString()
Produce concise output (type and name) if the current log level does not include debug.
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Public Constructors
public
PropertySource.StubPropertySource
(String name)
Public Methods
public
String
getProperty
(String key)
Return the value associated with the given key, null
if not found.
Parameters
key
| the property key to find |