An open API service indexing awesome lists of open source software.

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

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).