Skip to content

4.0.0 release

Compare
Choose a tag to compare
@norbertpotocki norbertpotocki released this 08 Aug 06:37
· 283 commits to master since this release

New features

  • add YAML support
  • PeriodicalReloadStrategy now supports multiple providers (one extra thread instead of many)
  • new builders for configuration sources for easier construction
  • add toString() methods for better logging
  • cfg4j is now split into 3 modules:
    • cfg4j-core - contains core classes and configuration sources (Files, Classpath, Merge, Fallback, Empty)
    • cfg4j-consul - contains Consul configuration source
    • cfg4j-git - contains Git configuration source

Fixes

  • better logging messages

Interface changes

Renames & moves

  • EnvironmentBasedBranchResolver -> FirstTokenBranchResolver
  • EnvironmentBasedPathResolver -> AllButFirstTokenPathResolver
  • Refreshable -> Reloadable
  • RefreshStrategy -> ReloadStrategy
  • OnInitRefreshStrategy -> ImmediateReloadStrategy
  • PeriodicalRefreshStrategy -> PeriodicalReloadStrategy
  • rename package: refresh -> reload
  • reorganized org.cfg4j.source package

Changes

  • ConfigFilesProvider.getConfigFiles() returns Iterable instead of Iterable
  • GitConfigurationSource now throws IllegalStateException and SourceCommunicationException instead of GitConfigurationSourceException

Removals

  • removed deprecated ConfigurationSource.getConfiguration()
  • removed deprecated PeriodicalRefreshStrategy(long refreshAfterMs) constructor
  • removed ConfigurationProviders class
  • removed ConfigurationProvider.getProperty(String key)

Other

  • upgraded dependencies