接口的使用
org.springframework.boot.context.properties.source.ConfigurationPropertySource
程序包
说明
Support for
@ConfigurationProperties
binding.General
BindHandler
implementations.Sources for external configuration properties.
-
org.springframework.boot.context.properties.bind中ConfigurationPropertySource的使用
限定符构造器说明Binder
(ConfigurationPropertySource... sources) Create a newBinder
instance for the specified sources.限定符构造器说明Binder
(Iterable<ConfigurationPropertySource> sources) Create a newBinder
instance for the specified sources.Binder
(Iterable<ConfigurationPropertySource> sources, PlaceholdersResolver placeholdersResolver) Create a newBinder
instance for the specified sources.Binder
(Iterable<ConfigurationPropertySource> sources, PlaceholdersResolver placeholdersResolver, List<ConversionService> conversionServices, Consumer<PropertyEditorRegistry> propertyEditorInitializer, BindHandler defaultBindHandler, BindConstructorProvider constructorProvider) Create a newBinder
instance for the specified sources.Binder
(Iterable<ConfigurationPropertySource> sources, PlaceholdersResolver placeholdersResolver, ConversionService conversionService) Create a newBinder
instance for the specified sources.Binder
(Iterable<ConfigurationPropertySource> sources, PlaceholdersResolver placeholdersResolver, ConversionService conversionService, Consumer<PropertyEditorRegistry> propertyEditorInitializer) Create a newBinder
instance for the specified sources.Binder
(Iterable<ConfigurationPropertySource> sources, PlaceholdersResolver placeholdersResolver, ConversionService conversionService, Consumer<PropertyEditorRegistry> propertyEditorInitializer, BindHandler defaultBindHandler) Create a newBinder
instance for the specified sources.Binder
(Iterable<ConfigurationPropertySource> sources, PlaceholdersResolver placeholdersResolver, ConversionService conversionService, Consumer<PropertyEditorRegistry> propertyEditorInitializer, BindHandler defaultBindHandler, BindConstructorProvider constructorProvider) Create a newBinder
instance for the specified sources. -
org.springframework.boot.context.properties.bind.handler中ConfigurationPropertySource的使用
限定符构造器说明NoUnboundElementsBindHandler
(BindHandler parent, Function<ConfigurationPropertySource, Boolean> filter) -
org.springframework.boot.context.properties.source中ConfigurationPropertySource的使用
修饰符和类型类说明class
AConfigurationPropertySource
backed by aMap
and using standard name mapping rules.修饰符和类型方法说明default ConfigurationPropertySource
ConfigurationPropertySource.filter
(Predicate<ConfigurationPropertyName> filter) Return a filtered variant of this source, containing only names that match the givenPredicate
.static ConfigurationPropertySource
ConfigurationPropertySource.from
(PropertySource<?> source) Return a single newConfigurationPropertySource
adapted from the given SpringPropertySource
ornull
if the source cannot be adapted.ConfigurationProperty.getSource()
Return theConfigurationPropertySource
that provided the property ornull
if the source is unknown.default ConfigurationPropertySource
ConfigurationPropertySource.withAliases
(ConfigurationPropertyNameAliases aliases) Return a variant of this source that supports name aliases.default ConfigurationPropertySource
ConfigurationPropertySource.withPrefix
(String prefix) Return a variant of this source that supports a prefix.修饰符和类型方法说明static Iterable
<ConfigurationPropertySource> ConfigurationPropertySources.from
(Iterable<PropertySource<?>> sources) ReturnIterable
containing newConfigurationPropertySource
instances adapted from the given SpringPropertySources
.static Iterable
<ConfigurationPropertySource> ConfigurationPropertySources.from
(PropertySource<?> source) ReturnIterable
containing a single newConfigurationPropertySource
adapted from the given SpringPropertySource
.static Iterable
<ConfigurationPropertySource> ConfigurationPropertySources.get
(Environment environment) Return a set ofConfigurationPropertySource
instances that have previously beenattached
to theEnvironment
.修饰符和类型方法说明UnboundElementsSourceFilter.apply
(ConfigurationPropertySource configurationPropertySource) 修饰符和类型方法说明static ConfigurationPropertyCaching
ConfigurationPropertyCaching.get
(Iterable<ConfigurationPropertySource> sources) Get for all specified configuration property sources.static ConfigurationPropertyCaching
ConfigurationPropertyCaching.get
(Iterable<ConfigurationPropertySource> sources, Object underlyingSource) Get for a specific configuration property source in the specified configuration property sources.