Package io.confound.config
Class AbstractConfigurationManager
- java.lang.Object
-
- io.confound.config.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 Summary
Constructors Constructor Description AbstractConfigurationManager(boolean required)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isRequired()
Returns whether this configuration manager requires a configuration to be determined.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.confound.config.ConfigurationManager
invalidate, isStale, loadConfiguration, saveConfiguration
-
-
-
-
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 returnOptional.empty()
.- Specified by:
isRequired
in interfaceConfigurationManager
- 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()
-
-