Interface ConfigDataEnvironmentUpdateListener
- All Superinterfaces:
EventListener
- Since:
- 2.4.2
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ConfigDataEnvironmentUpdateListenerAConfigDataEnvironmentUpdateListenerthat does nothing. -
Method Summary
Modifier and TypeMethodDescriptiondefault ConfigData.OptionsonConfigDataOptions(ConfigData configData, org.springframework.core.env.PropertySource<?> propertySource, ConfigData.Options options) Called when config data options are obtained for a particular property source.default voidonPropertySourceAdded(org.springframework.core.env.PropertySource<?> propertySource, ConfigDataLocation location, ConfigDataResource resource) Called when a newPropertySourceis added to theEnvironment.default voidonSetProfiles(Profiles profiles) Called whenEnvironmentprofiles are set.
-
Field Details
-
NONE
AConfigDataEnvironmentUpdateListenerthat does nothing.
-
-
Method Details
-
onPropertySourceAdded
default void onPropertySourceAdded(org.springframework.core.env.PropertySource<?> propertySource, ConfigDataLocation location, ConfigDataResource resource) Called when a newPropertySourceis added to theEnvironment.- Parameters:
propertySource- thePropertySourcethat was addedlocation- the originalConfigDataLocationof the source.resource- theConfigDataResourceof the source.
-
onSetProfiles
Called whenEnvironmentprofiles are set.- Parameters:
profiles- the profiles being set
-
onConfigDataOptions
default ConfigData.Options onConfigDataOptions(ConfigData configData, org.springframework.core.env.PropertySource<?> propertySource, ConfigData.Options options) Called when config data options are obtained for a particular property source.- Parameters:
configData- the config datapropertySource- the property sourceoptions- the options as provided byConfigData.getOptions(PropertySource)- Returns:
- the actual options that should be used
- Since:
- 3.5.1
-