public class

SystemProfileValueSource

extends Object
implements ProfileValueSource
java.lang.Object
   ↳ org.springframework.test.annotation.SystemProfileValueSource

Class Overview

Implementation of ProfileValueSource which uses system properties as the underlying source.

Summary

Public Methods
String get(String key)
Get the profile value indicated by the specified key from the system properties.
final static SystemProfileValueSource getInstance()
Obtain the canonical instance of this ProfileValueSource.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.test.annotation.ProfileValueSource

Public Methods

public String get (String key)

Get the profile value indicated by the specified key from the system properties.

Parameters
key the name of the profile value
Returns
  • the String value of the profile value, or null if there is no profile value with that key

public static final SystemProfileValueSource getInstance ()

Obtain the canonical instance of this ProfileValueSource.