https://github.com/mpashka/spring
Dynamically reload spring bean configuration
https://github.com/mpashka/spring
configuration java spring
Last synced: 5 months ago
JSON representation
Dynamically reload spring bean configuration
- Host: GitHub
- URL: https://github.com/mpashka/spring
- Owner: mpashka
- Created: 2018-08-19T20:24:19.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-27T09:36:47.000Z (almost 8 years ago)
- Last Synced: 2025-07-09T20:37:02.003Z (12 months ago)
- Topics: configuration, java, spring
- Language: Java
- Homepage:
- Size: 34.2 KB
- Stars: 3
- Watchers: 0
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This project is intended to provide spring configuraion that can be dynamically
reloaded
Inspired by [wuenschenswert.net](http://www.wuenschenswert.net/wunschdenken/archives/127)
#### Maven dependency
```xml
com.github.mpashka.spring
configuration
1.0.0
```
#### 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](https://github.com/mpashka/spring/blob/master/configuration/src/main/java/com/github/mpashka/spring/config/package-info.java)
for more details.
See [examples](https://github.com/mpashka/spring/tree/master/examples).