Interface ConfigurationFileFormat
- All Known Implementing Classes:
PropertiesFormat, YamlFormat
public interface ConfigurationFileFormat
The format of an application's configuration files, for example
properties or
yaml.- Author:
- Sijun Yang, Moritz Halbritter
-
Method Summary
Modifier and TypeMethodDescriptionReturn the extension of the configuration files of this format, including the leading dot, for example.yaml.static ConfigurationFileFormatCreates the configuration file format for the given id.id()Return the id of the configuration file format.
-
Method Details
-
id
-
fileExtension
String fileExtension()Return the extension of the configuration files of this format, including the leading dot, for example.yaml.- Returns:
- the file extension
-
forId
Creates the configuration file format for the given id.- Parameters:
id- the id- Returns:
- the configuration file format
- Throws:
IllegalStateException- if the configuration file format with the given id can't be found
-