Package io.rincl
Class ConfigurationResources
- java.lang.Object
-
- io.confound.config.AbstractConfiguration
-
- io.confound.config.AbstractConfigurationDecorator
-
- io.rincl.ConfigurationResources
-
-
Constructor Summary
Constructors Constructor Description ConfigurationResources(java.lang.Class<?> contextClass, io.confound.config.Configuration configuration)
Context class and wrapped configuration constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>
getContextClass()
-
Methods inherited from class io.confound.config.AbstractConfigurationDecorator
findBoolean, findDouble, findInt, findLong, findObject, findObject, findPath, findString, findUri, getBoolean, getConfiguration, getDouble, getInt, getLong, getObject, getObject, getPath, getString, getUri, hasConfigurationValue
-
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, findDouble, findInt, findLong, findObject, findObject, findPath, findString, findUri, getBoolean, getDouble, getInt, getLong, getObject, getObject, getPath, getString, getUri, hasConfigurationValue, requireConfiguration, resolvePath, withFallback
-
Methods inherited from interface io.rincl.Resources
createMissingConfigurationKeyException, findString, getString, hasResource, withFallback
-
-
-
-
Constructor Detail
-
ConfigurationResources
public ConfigurationResources(@Nonnull java.lang.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:
java.lang.NullPointerException
- if the given context class and/or configuration isnull
.
-
-
Method Detail
-
getContextClass
public java.lang.Class<?> getContextClass()
- Specified by:
getContextClass
in interfaceResources
- Returns:
- The context with which these resources are related; usually the class of the object requesting the resource.
-
-