Class SystemProfileValueSource

java.lang.Object
org.springframework.test.annotation.SystemProfileValueSource
All Implemented Interfaces:
ProfileValueSource

@Deprecated(since="7.0") public final class SystemProfileValueSource extends Object implements ProfileValueSource
Deprecated.
since Spring Framework 7.0 in favor of the SpringExtension and JUnit Jupiter
Implementation of ProfileValueSource which uses system properties as the underlying source.
Since:
2.0
Author:
Rod Johnson, Sam Brannen
  • Method Details

    • getInstance

      public static SystemProfileValueSource getInstance()
      Deprecated.
      Obtain the canonical instance of this ProfileValueSource.
    • get

      public String get(String key)
      Deprecated.
      Get the profile value indicated by the specified key from the system properties.
      Specified by:
      get in interface ProfileValueSource
      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
      See Also: