Package io.rincl

Class 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
    • 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 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, findDouble, findInt, findLong, findObject, findObject, findPath, findString, findUri, getBoolean, getDouble, getInt, getLong, getObject, getObject, getPath, getString, getUri, hasConfigurationValue, requireConfiguration, resolvePath, 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 is null.
    • Method Detail

      • getContextClass

        public java.lang.Class<?> getContextClass()
        Specified by:
        getContextClass in interface Resources
        Returns:
        The context with which these resources are related; usually the class of the object requesting the resource.