Class AbstractConfigurationManager

  • All Implemented Interfaces:
    ConfigurationManager

    public abstract class AbstractConfigurationManager
    extends java.lang.Object
    implements ConfigurationManager
    A configuration manager that knows how to load a configuration by parsing some document from an input stream.
    Author:
    Garret Wilson
    • Constructor Detail

      • AbstractConfigurationManager

        public AbstractConfigurationManager​(boolean required)
        Constructor.
        Parameters:
        required - Whether the manager requires a configuration to be determined when loading.
    • Method Detail

      • isRequired

        public boolean isRequired()
        Description copied from interface: ConfigurationManager
        Returns whether this configuration manager requires a configuration to be determined. If a configuration is required, attempting to load a configuration will throw an exception if a configuration cannot be determined; otherwise, it will return Optional.empty().
        Specified by:
        isRequired in interface ConfigurationManager
        Returns:
        true if a configuration is required and this manager will always return a configuration and throw an exception if one cannot be determined.
        See Also:
        ConfigurationManager.loadConfiguration()