ConfigurationSourceProviderpublic class SubstitutingSourceProvider extends java.lang.Object implements ConfigurationSourceProvider
ConfigurationSourceProvider which replaces variables in the underlying configuration
source according to the rules of a custom StrSubstitutor.| Constructor | Description |
|---|---|
SubstitutingSourceProvider(ConfigurationSourceProvider delegate,
org.apache.commons.text.StrSubstitutor substitutor) |
Create a new instance.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.io.InputStream |
open(java.lang.String path) |
Returns an
InputStream that contains the source of the configuration for the
application. |
public SubstitutingSourceProvider(ConfigurationSourceProvider delegate, org.apache.commons.text.StrSubstitutor substitutor)
delegate - The underlying ConfigurationSourceProvider.substitutor - The custom StrSubstitutor implementation.public java.io.InputStream open(java.lang.String path)
throws java.io.IOException
InputStream that contains the source of the configuration for the
application. The caller is responsible for closing the result.open in interface ConfigurationSourceProviderpath - the path to the configurationInputStreamjava.io.IOException - if there is an error reading the data at pathCopyright © 2018. All rights reserved.