Commit Graph

66 Commits

Author SHA1 Message Date
Dave Syer
5e29312518 Reverse order of property sources before decrypting
Fixes gh-70
2015-12-18 10:04:27 +00:00
Spencer Gibb
7d86198b17 Migrate SpringClientFactory and FeignClientFactory functions
fixes gh-69
2015-12-17 14:25:15 -07:00
Dave Syer
988189db82 Add extra decryption step before propery source locators
See also the integration tests in spring-cloud-samples/tests

Fixes gh-58
2015-11-11 09:13:56 +00:00
Dave Syer
a6124e7063 Add another property source for decrypted bootstrap properties
The problem is that we do want bootstrap properties to override
default properties in most cases, but if they are decrypted those
values have to be added with the highest possible precedence.

Fixes gh-54
2015-10-02 15:00:22 +01:00
Dave Syer
bf8c7cff71 Add test for refresh scope behaviour 2015-09-24 13:56:42 +01:00
Dave Syer
8c346506f4 Re-order events in RefreshEndpoint
EnvironmentChangeEvent should come before the RefreshScopeRefreshedEvent
so that all the @ConfigurationProperties are fully bound when the refresh
happens.
2015-09-24 12:14:46 +01:00
Dave Syer
dc06921877 Add test for message source configuration
See gh-29
2015-08-21 17:19:03 +01:00
Dave Syer
f022fb78bd Move RefreshEndpoint to more logical package 2015-08-21 14:40:52 +01:00
Dave Syer
b022a39ba8 Rebind configuration properties on startup in case environment changed
The main driver for this was a config server use case, where the server
wants to configure its own properties in the remote repo. It was working
up to a point, but the beans in bootstrap context were not refreshed
after the Environment was built so you had to manually refresh them to
get them to point to (e.g.) config repos configured remotely.

Fixes https://github.com/spring-cloud/spring-cloud-config/issues/139
2015-08-21 12:32:19 +01:00
Dave Syer
addeda8262 Allow ConfigurationPropertiesRebinder to rebind beans by name
including ones in the parent context.
2015-07-28 13:07:37 +01:00
Dave Syer
4df29bdfe7 Suppress rebinding of configuration properties for refresh scope
If a @ConfigurationProperties @Bean is in @RefreshScope then it doesn't
need to be rebound on an environment change event (it will re-initialize
on refresh).

See https://github.com/spring-cloud/spring-cloud-config/issues/183
2015-07-20 17:05:34 +01:00
Dave Syer
fbe17efd30 Internal change in RefreshEndpoint to keep property sources separate
The incoming (existing) environment needs to be used to initalize the
context that is created to grab the new environment, but we shouldn't
re-use the existing environment, rather just copy the property sources
and profiles.
2015-07-14 13:24:01 +01:00
Dave Syer
a58d06a704 Add test for refresh scope on configuration properties list 2015-07-14 13:24:01 +01:00
Dave Syer
2978b8df4d Clean up shutdown hooks on refresh
Fixes gh-63
2015-05-19 10:04:17 +01:00
Dave Syer
9d4584bb5c Add flag spring.cloud.config.overrideNone
If true (and spring.cloud.config.allowOverride=true) then the bootstrap
property source is added *last*, so all other property sources can override
it (including local config files).

Fixes gh-26, fixes gh-27.
2015-04-28 12:31:25 +01:00
Dave Syer
7d480ab41b Extract former config-client features to a new spring-cloud-context
Fixes gh-14
2015-03-19 11:52:25 +00:00