|Modifier and Type||Method and Description|
public static boolean isAttachedConfigurationPropertySource(PropertySource<?> propertySource)
propertySource- the property source to test
trueif this is the attached
public static void attach(Environment environment)
ConfigurationPropertySourcesupport to the specified
Environment. Adapts each
PropertySourcemanaged by the environment to a
ConfigurationPropertySourceand allows classic
PropertySourcesPropertyResolvercalls to resolve using
configuration property names.
The attached resolver will dynamically track any additions or removals from the
Environment property sources.
public static Iterable<ConfigurationPropertySource> get(Environment environment)
ConfigurationPropertySourceinstances that have previously been
public static Iterable<ConfigurationPropertySource> from(PropertySource<?> source)
Iterablecontaining a single new
ConfigurationPropertySourceadapted from the given Spring
public static Iterable<ConfigurationPropertySource> from(Iterable<PropertySource<?>> sources)
ConfigurationPropertySourceinstances adapted from the given Spring
This method will flatten any nested property sources and will filter all
stub property sources. Updates to the underlying source,
identified by changes in the sources returned by its iterator, will be
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.