new StandardEnvironment will add systemProperties/systemEnvironment PropertySource within its constructor which we do not need.
**we should not create object which do something we do not want, then undo it**
This includes ConfigDataEnvironmentPostProcessors which replaces the static call.
Issue #968 was specifically about the cloud foundry vcap post processor. Previously the DecryptEnvironmentPostProcessor was hard coded in ConfigDataContextRefresher
Fixes gh-968
RefreshBootstrapRegistryInitializer saves the BootstrapContext to the application context so ConfigDataContextRefresher can reuse it during rebind.
This fixes issues where custom beans were created such as RestTemplate or discovery first config server lookup.
Fixes gh-933
LegacyContextRefresher used to set `spring.cloud.bootstrap.enabled=true` as a property using the api of `SpringApplicationBuilder`. This change moves the setting of properties for refresh from ContextRefresher to LegacyContextRefresher since they are only applicable there. The bootstrap enabled propery is now set on the refresh property source rather than the api.
Fixes gh-892
This will take into account if the bootstrap marker class is present and bring parity between ConditionalOnBootstrapDisabled and TextEncryptorConfigBootstrapper
This is used if bootstrap and legacy processing are not enabled.
EnvironmentDecryptApplicationInitializer is only is if bootstrap and legacy processing are enabled.
Fixes gh-815
A new interface PauseHandler provides a callback for /pause and
/resume. The only implementation provided out of the box is for
Spring Integration's Pausable (so it will work with Spring Cloud
Stream Kafka for instance).
Fixes gh-788
Bootstrap is now opt-in using `spring.config.use-legacy-processing`. Otherwise, bootstrap is left as is.
If bootstrap is disabled, the `ContextRefresher` uses new `ConfigData` framework from boot.
See #608 for original motivation.
* Fix execution thread for blocking DiscoveryClientServiceInstanceListSupplier.
* Desynchronise HealthCheck and Cache. Add info about using HealthCheck without Cache to docs.
See gh-760