Package com.chillycheesy.modulo.config
Interface ConfigurationLoaderStrategy
- All Known Implementing Classes:
JacksonConfigurationStrategy
,JsonConfigurationStrategy
,PropertiesConfigurationStrategy
,YamlConfigurationStrategy
public interface ConfigurationLoaderStrategy
Loads and saves a configuration from Input and Output Stream.
-
Method Summary
Modifier and TypeMethodDescriptionloadConfiguration(InputStream inputStream)
Loads a configuration from an input stream.void
saveConfiguration(Configuration configuration, OutputStream outputStream)
Saves a configuration to an output stream.
-
Method Details
-
loadConfiguration
Loads a configuration from an input stream.- Parameters:
inputStream
- The input stream to load from.- Returns:
- The loaded configuration.
- Throws:
IOException
- If an error occurs while loading the configuration.
-
saveConfiguration
Saves a configuration to an output stream.- Parameters:
configuration
- The configuration to save.outputStream
- The output stream to save to.- Throws:
IOException
- If an error occurs while saving the configuration.
-