Package io.confound.config
Class ChildConfigurationDecorator
- java.lang.Object
-
- io.confound.config.AbstractConfiguration
-
- io.confound.config.AbstractChildConfigurationDecorator<C>
-
- io.confound.config.BaseChildConfigurationDecorator<Configuration>
-
- io.confound.config.ChildConfigurationDecorator
-
- All Implemented Interfaces:
Configuration
public class ChildConfigurationDecorator extends BaseChildConfigurationDecorator<Configuration>
A wrapper configuration that forwards calls to the decorated configuration, falling back to a parent configuration.- Author:
- Garret Wilson
-
-
Field Summary
-
Fields inherited from interface io.confound.config.Configuration
KEY_SEGMENT_SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description ChildConfigurationDecorator(Configuration configuration, Configuration parentConfiguration)
Wrapped configuration and parent configuration constructor.
-
Method Summary
-
Methods inherited from class io.confound.config.BaseChildConfigurationDecorator
getConfiguration, getParentConfiguration
-
Methods inherited from class io.confound.config.AbstractChildConfigurationDecorator
findBoolean, findDouble, findInt, findLong, findObject, findObject, findPath, findString, findUri, getBoolean, getDouble, getInt, getLong, getObject, getObject, getPath, getString, getUri, hasConfigurationValue
-
Methods inherited from class io.confound.config.AbstractConfiguration
or
-
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.Configuration
createMissingConfigurationKeyException, requireConfiguration, resolvePath, subConfiguration, superConfiguration, withFallback
-
-
-
-
Constructor Detail
-
ChildConfigurationDecorator
public ChildConfigurationDecorator(@Nonnull Configuration configuration, @Nonnull Configuration parentConfiguration)
Wrapped configuration and parent configuration constructor.- Parameters:
configuration
- The configuration to decorate.parentConfiguration
- The parent configuration to use for fallback lookup.- Throws:
java.lang.NullPointerException
- if the given configuration and/or parent configuration isnull
.
-
-