spring-attic / spring-cloud-etcd

Apache License 2.0
144 stars 60 forks source link

Support for runtime changes of @ConfigurationProperties and @RefreshScope via Etcd #23

Closed makobernal closed 7 years ago

makobernal commented 8 years ago

Properties and beans annotated with @ConfigurationProperties and @RefreshScope can be re-bound at runtime when receiving a EnvironmentChangedEvent.

spring-cloud-etcd could implement something similar by this by listening to changes done to configuration values on Etcd (request to etcd for values with wait, perhaps?)

Are there any plans on implementing this pattern?

spencergibb commented 8 years ago

Yes, that would be a good addition. Pull Requests welcome.