Skip to content
/ spring Public

Dynamically reload spring bean configuration

Notifications You must be signed in to change notification settings

mpashka/spring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Packages

No packages published

Languages