Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Dynamically reload spring bean configuration

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages