接口 ConfigData.PropertySourceOptions
- 封闭类:
ConfigData
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
Strategy interface used to supply
ConfigData.Options for a given
PropertySource.- 从以下版本开始:
- 2.4.5
-
字段概要
字段修饰符和类型字段说明static final ConfigData.PropertySourceOptionsConfigData.PropertySourceOptionsinstance that always returnsConfigData.Options.NONE. -
方法概要
修饰符和类型方法说明always(ConfigData.Option... options) Create a newConfigData.PropertySourceOptionsinstance that always returns the same options regardless of the property source.always(ConfigData.Options options) Create a newConfigData.PropertySourceOptionsinstance that always returns the same options regardless of the property source.get(PropertySource<?> propertySource) Return the options that should apply for the given property source.
-
字段详细资料
-
ALWAYS_NONE
ConfigData.PropertySourceOptionsinstance that always returnsConfigData.Options.NONE.- 从以下版本开始:
- 2.4.6
-
-
方法详细资料
-
get
Return the options that should apply for the given property source.- 参数:
propertySource- the property source- 返回:
- the options to apply
-
always
Create a newConfigData.PropertySourceOptionsinstance that always returns the same options regardless of the property source.- 参数:
options- the options to return- 返回:
- a new
ConfigData.PropertySourceOptionsinstance
-
always
Create a newConfigData.PropertySourceOptionsinstance that always returns the same options regardless of the property source.- 参数:
options- the options to return- 返回:
- a new
ConfigData.PropertySourceOptionsinstance
-