Package io.rincl
Class ConfigurationResources
java.lang.Object
io.confound.config.AbstractConfiguration
io.confound.config.AbstractConfigurationDecorator
io.rincl.ConfigurationResources
- All Implemented Interfaces:
io.confound.config.Configuration
,Resources
public class ConfigurationResources
extends io.confound.config.AbstractConfigurationDecorator
implements Resources
Resources that wrap an existing Configuration instance.
- Author:
- Garret Wilson
-
Field Summary
Fields inherited from interface io.confound.config.Configuration
KEY_SEGMENT_SEPARATOR, KEY_SEGMENTS_PATTERN
-
Constructor Summary
ConstructorDescriptionConfigurationResources
(Class<?> contextClass, io.confound.config.Configuration configuration) Context class and wrapped configuration constructor. -
Method Summary
Methods inherited from class io.confound.config.AbstractConfigurationDecorator
decorateKey, findBoolean, findCollection, findCollection, findDouble, findInt, findLong, findObject, findObject, findPath, findSection, findString, findUri, getBoolean, getCollection, getCollection, getConfiguration, getDouble, getInt, getLong, getObject, getObject, getPath, getSection, 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
findBoolean, findCollection, findCollection, findDouble, findInt, findLong, findObject, findObject, findPath, findSection, findString, findUri, getBoolean, getCollection, getCollection, getDouble, getInt, getLong, getObject, getObject, getPath, getSection, getString, getUri, hasConfigurationValue, requireConfiguration, resolvePath, subConfiguration, superConfiguration, withFallback
Methods inherited from interface io.rincl.Resources
createMissingConfigurationKeyException, findString, getString, hasResource, withFallback
-
Constructor Details
-
ConfigurationResources
public ConfigurationResources(@Nonnull Class<?> contextClass, @Nonnull io.confound.config.Configuration configuration) Context class and wrapped configuration constructor.- Parameters:
contextClass
- The context with which these resources are related; usually the class of the object requesting the resource.configuration
- The configuration to decorate.- Throws:
NullPointerException
- if the given context class and/or configuration isnull
.
-
-
Method Details
-
getContextClass
- Specified by:
getContextClass
in interfaceResources
- Returns:
- The context with which these resources are related; usually the class of the object requesting the resource.
-