Class FileConfigurationSourceProvider
java.lang.Object
com.github.cafapi.common.config.sources.file.FileConfigurationSourceProvider
- All Implemented Interfaces:
ConfigurationSourceProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConfigurationSource(BootstrapConfiguration bootstrapProvider, Cipher cipher, ServicePath servicePath, Decoder decoder) Acquire a ConfigurationSource implementation.
-
Constructor Details
-
FileConfigurationSourceProvider
public FileConfigurationSourceProvider()
-
-
Method Details
-
getConfigurationSource
public ManagedConfigurationSource getConfigurationSource(BootstrapConfiguration bootstrapProvider, Cipher cipher, ServicePath servicePath, Decoder decoder) throws ConfigurationException Description copied from interface:ConfigurationSourceProviderAcquire a ConfigurationSource implementation.- Specified by:
getConfigurationSourcein interfaceConfigurationSourceProvider- Parameters:
bootstrapProvider- used to provide initial configuration of the ConfigurationSourcecipher- used to perform any necessary decryption in the configuration objectsservicePath- used to acquire service-specific configurationdecoder- used to decode data from the source into objects- Returns:
- a new ConfigurationSource instance
- Throws:
ConfigurationException- if the ConfigurationSource could not be created
-