Package io.rincl
Class AbstractStringResources
java.lang.Object
io.confound.config.AbstractConfiguration
io.confound.config.BaseConfiguration<String>
io.confound.config.AbstractStringConfiguration
io.rincl.AbstractStringResources
- All Implemented Interfaces:
io.confound.config.Configuration
,Resources
public abstract class AbstractStringResources
extends io.confound.config.AbstractStringConfiguration
implements Resources
Abstract implementation of access to i18n resources for which the underlying storage is based on strings.
As with the parent class, an implementing subclass must override BaseConfiguration.findConfigurationValueImpl(String)
for local raw string retrieval. This class
retrieves all values as stored in string format accessed via BaseConfiguration.findConfigurationValueImpl(String)
, and afterwards dereferenced using
AbstractStringConfiguration.dereferenceString(String)
.
- Author:
- Garret Wilson
-
Field Summary
Fields inherited from interface io.confound.config.Configuration
KEY_SEGMENT_SEPARATOR, KEY_SEGMENTS_PATTERN
-
Constructor Summary
-
Method Summary
Methods inherited from class io.confound.config.AbstractStringConfiguration
dereferenceString, findBoolean, findConfigurationValue, findDouble, findInt, findLong, findObject, findPath, findString, findUri
Methods inherited from class io.confound.config.BaseConfiguration
convertValue, findCollection, findConfigurationValueImpl, hasConfigurationValue, hasConfigurationValueImpl, normalizeKey
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
-
AbstractStringResources
Context class constructor.- Parameters:
contextClass
- The context with which these resources are related; usually the class of the object requesting the resource.- Throws:
NullPointerException
- if the given context class 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.
-