This project is intended to provide spring configuraion that can be dynamically reloaded
Inspired by wuenschenswert.net
Maven dependency
<dependency>
<groupId>com.github.mpashka.spring</groupId>
<artifactId>configuration</artifactId>
<version>1.0.0</version>
</dependency>
Spring context modification
In order to use this one several beans must be configured in spring context:
- PropertySourcesPlaceholderConfigurer - core spring class to configure spring placeholder
- EnvironmentConfigurationSource - thing to watch and reload configuration files
- ReloadableConfigurationSupport - traverse spring configuration and find all properties that need to be reloaded
- (Optionally) ConfigurationUpdatedEvent listener to listen configuration files updates
See package-info for more details.
See examples.