Class SubstitutingSourceProvider

java.lang.Object
io.dropwizard.configuration.SubstitutingSourceProvider
All Implemented Interfaces:
ConfigurationSourceProvider

public class SubstitutingSourceProvider extends Object implements ConfigurationSourceProvider
A delegating ConfigurationSourceProvider which replaces variables in the underlying configuration source according to the rules of a custom StringSubstitutor.
  • Constructor Details

    • SubstitutingSourceProvider

      public SubstitutingSourceProvider(ConfigurationSourceProvider delegate, org.apache.commons.text.StringSubstitutor substitutor)
      Create a new instance.
      Parameters:
      delegate - The underlying ConfigurationSourceProvider.
      substitutor - The custom StringSubstitutor implementation.
  • Method Details