public interface

ProfileValueSource

org.springframework.test.annotation.ProfileValueSource
Known Indirect Subclasses

Class Overview

Strategy interface for retrieving profile values for a given testing environment.

Concrete implementations must provide a public no-args constructor.

Spring provides the following out-of-the-box implementations:

Summary

Public Methods
abstract String get(String key)
Get the profile value indicated by the specified key.

Public Methods

public abstract String get (String key)

Get the profile value indicated by the specified key.

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