Package com.typesafe.config
package com.typesafe.config
-
ClassDescriptionAn immutable map from config paths to config values.Factory for automatically creating a Java class from a
Config
.All exceptions thrown by the library are subclasses ofConfigException
.Some problem with a JavaBean we are trying to initialize.Exception indicating that a path expression was invalid.Exception indicating that a value was messed up, for example you may have asked for a duration and the value can't be sensibly parsed as a duration.Exception indicating that there's a bug in something (possibly the library itself) or the runtime environment is broken.Exception that doesn't fall into any other category.Exception indicating that there was an IO error.Exception indicates that the setting was never set to anything, not even null.Exception indicating that you tried to use a function that requires substitutions to be resolved, but substitutions have not been resolved (that is,Config.resolve()
was not called).Exception indicates that the setting was treated as missing because it was set to null.Exception indicating that there was a parse error.Exception indicating that a substitution did not resolve to anything.Exception indicating thatConfig.checkValid(com.typesafe.config.Config, java.lang.String...)
found validity problems.Information about a problem that occurred inConfig.checkValid(com.typesafe.config.Config, java.lang.String...)
.Exception indicating that the type of a value does not match the type you requested.Contains static methods for creatingConfig
instances.Context provided to aConfigIncluder
; this interface is only useful inside aConfigIncluder
implementation, and is not intended for apps to implement.Implement this interface and provide an instance toConfigParseOptions.setIncluder()
to customize handling ofinclude
statements in config files.Implement this in addition toConfigIncluder
if you want to support inclusion of files with theinclude classpath("resource")
syntax.Implement this in addition toConfigIncluder
if you want to support inclusion of files with theinclude file("filename")
syntax.Implement this in addition toConfigIncluder
if you want to support inclusion of files with theinclude url("http://example.com")
syntax.Subtype ofConfigValue
representing a list value, as in JSON's[1,2,3]
syntax.This method allows you to alter default config loading strategy for all the code which callsConfigFactory.load(java.lang.String)
.An immutable class representing an amount of memory.Marker for types whose instances can be merged, that isConfig
andConfigValue
.Subtype ofConfigValue
representing an object (AKA dictionary or map) value, as in JSON's curly brace{ "a" : 42 }
syntax.Represents the origin (such as filename and line number) of aConfigValue
for use in error messages.This class contains some static factory methods for building aConfigOrigin
.An opaque handle to something that can be parsed, obtained fromConfigIncludeContext
.A set of options related to parsing.A set of options related to rendering aConfigValue
.A set of options related to resolving substitutions.Contains static utility methods.An immutable value, following the JSON type schema.This class holds some static factory methods for buildingConfigValue
instances.The type of a configuration value (following the JSON type schema).Default config loading strategy.Allows an config property to benull
.