|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.test.annotation.SystemProfileValueSource
public class SystemProfileValueSource
Implementation of ProfileValueSource
which uses system properties as
the underlying source.
Field Summary | |
---|---|
private static SystemProfileValueSource |
INSTANCE
|
Constructor Summary | |
---|---|
private |
SystemProfileValueSource()
Private constructor, enforcing the singleton pattern. |
Method Summary | |
---|---|
java.lang.String |
get(java.lang.String key)
Get the profile value indicated by the specified key from the system properties. |
static SystemProfileValueSource |
getInstance()
Obtain the canonical instance of this ProfileValueSource. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final SystemProfileValueSource INSTANCE
Constructor Detail |
---|
private SystemProfileValueSource()
Method Detail |
---|
public static final SystemProfileValueSource getInstance()
public java.lang.String get(java.lang.String key)
get
in interface ProfileValueSource
key
- the name of the profile value
null
if there is no profile value with that keySystem.getProperty(String)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |