Interface ConfigSource
- All Known Implementing Classes:
ConfigProcessor
public interface ConfigSource
A provider for a configuration node, one half of a loader
-
Method Summary
Modifier and TypeMethodDescriptiondefault ConfigurationNodeRead a node from the provided reader.read(Reader reader, UnaryOperator<ConfigurationOptions> optionsConfiguration) Read a node from the provided reader.
-
Method Details
-
read
Read a node from the provided reader.- Parameters:
reader- the reader to use- Returns:
- a loaded node
- Throws:
ConfigurateException- if any error occurs while loading
-
read
ConfigurationNode read(Reader reader, UnaryOperator<ConfigurationOptions> optionsConfiguration) throws ConfigurateException Read a node from the provided reader.- Parameters:
reader- the reader to useoptionsConfiguration- an operator to tweak the options used in this source- Returns:
- a loaded node
- Throws:
ConfigurateException- if any error occurs while loading
-