Package com.github.cafapi.common.api
Interface ConfigurationSourceProvider
- All Known Implementing Classes:
FileConfigurationSourceProvider
public interface ConfigurationSourceProvider
Simple boilerplate to return a ConfigurationSource.
-
Method Summary
Modifier and TypeMethodDescriptiongetConfigurationSource(BootstrapConfiguration bootstrapProvider, Cipher cipher, ServicePath servicePath, Decoder decoder) Acquire a ConfigurationSource implementation.
-
Method Details
-
getConfigurationSource
ManagedConfigurationSource getConfigurationSource(BootstrapConfiguration bootstrapProvider, Cipher cipher, ServicePath servicePath, Decoder decoder) throws ConfigurationException Acquire a ConfigurationSource implementation.- 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
-