接口 ProfileValueSource

所有已知实现类:
SystemProfileValueSource

public interface ProfileValueSource

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

Concrete implementations must provide a public no-args constructor.

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

从以下版本开始:
4.0
作者:
Rod Johnson, Sam Brannen
另请参阅:
  • 方法概要

    修饰符和类型
    方法
    说明
    get(String key)
    Get the profile value indicated by the specified key.
  • 方法详细资料

    • get

      @Nullable String get(String key)
      Get the profile value indicated by the specified key.
      参数:
      key - the name of the profile value
      返回:
      the String value of the profile value, or null if there is no profile value with that key