Top Description Inners Fields Constructors Methods
com.typesafe.config.impl

public Class ConfigImpl

extends Object
Class Inheritance
Imports
java.io.File, java.lang.ref.WeakReference, java.net.URL, java.time.Duration, java.util.ArrayList, .Collections, .HashMap, .Iterator, .List, .Map, .Properties, java.util.concurrent.Callable, com.typesafe.config.Config, .ConfigException, .ConfigIncluder, .ConfigMemorySize, .ConfigObject, .ConfigOrigin, .ConfigParseOptions, .ConfigParseable, .ConfigValue, com.typesafe.config.impl.SimpleIncluder.NameSource

Internal implementation detail, not ABI stable, do not touch. For use only by the com.typesafe.config package.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv static class
private static class
private static class
private static class
private static class
pack-priv static class
private static class
private static class
private static class

Field Summary

Modifier and TypeField and Description
private static final SimpleConfigList
private static final SimpleConfigObject
private static final ConfigBoolean
private static final ConfigNull
private static final ConfigBoolean
private static final ConfigOrigin
private static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static Config
pack-priv static ConfigIncluder
public static Config
public static Config
defaultReferenceUnresolved(final ClassLoader loader)

This returns the unresolved reference configuration, but before doing so, it verifies that the reference configuration resolves, to ensure that it is self contained and doesn't depend on any higher level configuration files.

pack-priv static AbstractConfigObject
public static Config
emptyConfig(String originDescription)

private static SimpleConfigList
pack-priv static AbstractConfigObject
emptyObject(String originDescription)

private static AbstractConfigObject
public static Config
pack-priv static AbstractConfigObject
public static Config
pack-priv static AbstractConfigObject
public static ConfigValue
fromAnyRef(Object object, String originDescription)

pack-priv static AbstractConfigValue
fromAnyRef(Object object, ConfigOrigin origin, FromMapMode mapMode)

public static ConfigObject
fromPathMap(Map<String, ? extends Object> pathMap, String originDescription)

private static Properties
pack-priv static ConfigException.NotResolved
private static AbstractConfigObject
private static AbstractConfigObject
private static AbstractConfigObject
public static ConfigOrigin
newEnvVariable(String description)

public static ConfigOrigin
public static ConfigOrigin
newSimpleOrigin(String description)

public static ConfigOrigin
public static ConfigObject
public static ConfigObject
parseResourcesAnySyntax(Class<?> klass, String resourceBasename, ConfigParseOptions baseOptions)

public static ConfigObject
parseResourcesAnySyntax(String resourceBasename, ConfigParseOptions baseOptions)

public static void
public static void
public static void
public static Config
pack-priv static AbstractConfigObject
public static void
trace(String message)

public static void
trace(int indentLevel, String message)

public static boolean
public static boolean
private static Config
private static ConfigOrigin
valueOrigin(String originDescription)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

defaultEmptyListback to summary
private static final SimpleConfigList defaultEmptyList
defaultEmptyObjectback to summary
private static final SimpleConfigObject defaultEmptyObject
defaultFalseValueback to summary
private static final ConfigBoolean defaultFalseValue
defaultNullValueback to summary
private static final ConfigNull defaultNullValue
defaultTrueValueback to summary
private static final ConfigBoolean defaultTrueValue
defaultValueOriginback to summary
private static final ConfigOrigin defaultValueOrigin
ENV_VAR_OVERRIDE_PREFIXback to summary
private static final String ENV_VAR_OVERRIDE_PREFIX

Constructor Detail

ConfigImplback to summary
public ConfigImpl()

Method Detail

computeCachedConfigback to summary
public static Config computeCachedConfig(ClassLoader loader, String key, Callable<Config> updater)
defaultIncluderback to summary
pack-priv static ConfigIncluder defaultIncluder()
defaultReferenceback to summary
public static Config defaultReference(final ClassLoader loader)
defaultReferenceUnresolvedback to summary
public static Config defaultReferenceUnresolved(final ClassLoader loader)

This returns the unresolved reference configuration, but before doing so, it verifies that the reference configuration resolves, to ensure that it is self contained and doesn't depend on any higher level configuration files.

emptyback to summary
pack-priv static AbstractConfigObject empty(ConfigOrigin origin)
emptyConfigback to summary
public static Config emptyConfig(String originDescription)
emptyListback to summary
private static SimpleConfigList emptyList(ConfigOrigin origin)
emptyObjectback to summary
pack-priv static AbstractConfigObject emptyObject(String originDescription)
emptyObjectback to summary
private static AbstractConfigObject emptyObject(ConfigOrigin origin)
envVariablesAsConfigback to summary
public static Config envVariablesAsConfig()
envVariablesAsConfigObjectback to summary
pack-priv static AbstractConfigObject envVariablesAsConfigObject()
envVariablesOverridesAsConfigback to summary
public static Config envVariablesOverridesAsConfig()
envVariablesOverridesAsConfigObjectback to summary
pack-priv static AbstractConfigObject envVariablesOverridesAsConfigObject()
fromAnyRefback to summary
public static ConfigValue fromAnyRef(Object object, String originDescription)
fromAnyRefback to summary
pack-priv static AbstractConfigValue fromAnyRef(Object object, ConfigOrigin origin, FromMapMode mapMode)
fromPathMapback to summary
public static ConfigObject fromPathMap(Map<String, ? extends Object> pathMap, String originDescription)
getSystemPropertiesback to summary
private static Properties getSystemProperties()
improveNotResolvedback to summary
pack-priv static ConfigException.NotResolved improveNotResolved(Path what, ConfigException.NotResolved original)
loadEnvVariablesback to summary
private static AbstractConfigObject loadEnvVariables()
loadEnvVariablesOverridesback to summary
private static AbstractConfigObject loadEnvVariablesOverrides()
loadSystemPropertiesback to summary
private static AbstractConfigObject loadSystemProperties()
newEnvVariableback to summary
public static ConfigOrigin newEnvVariable(String description)
newFileOriginback to summary
public static ConfigOrigin newFileOrigin(String filename)
newSimpleOriginback to summary
public static ConfigOrigin newSimpleOrigin(String description)
newURLOriginback to summary
public static ConfigOrigin newURLOrigin(URL url)
parseFileAnySyntaxback to summary
public static ConfigObject parseFileAnySyntax(File basename, ConfigParseOptions baseOptions)
parseResourcesAnySyntaxback to summary
public static ConfigObject parseResourcesAnySyntax(Class<?> klass, String resourceBasename, ConfigParseOptions baseOptions)
parseResourcesAnySyntaxback to summary
public static ConfigObject parseResourcesAnySyntax(String resourceBasename, ConfigParseOptions baseOptions)
reloadEnvVariablesConfigback to summary
public static void reloadEnvVariablesConfig()
reloadEnvVariablesOverridesConfigback to summary
public static void reloadEnvVariablesOverridesConfig()
reloadSystemPropertiesConfigback to summary
public static void reloadSystemPropertiesConfig()
systemPropertiesAsConfigback to summary
public static Config systemPropertiesAsConfig()
systemPropertiesAsConfigObjectback to summary
pack-priv static AbstractConfigObject systemPropertiesAsConfigObject()
traceback to summary
public static void trace(String message)
traceback to summary
public static void trace(int indentLevel, String message)
traceLoadsEnabledback to summary
public static boolean traceLoadsEnabled()
traceSubstitutionsEnabledback to summary
public static boolean traceSubstitutionsEnabled()
unresolvedReferenceback to summary
private static Config unresolvedReference(final ClassLoader loader)
valueOriginback to summary
private static ConfigOrigin valueOrigin(String originDescription)
com.typesafe.config.impl back to summary

pack-priv Class ConfigImpl.ClasspathNameSource

extends Object
implements NameSource
Class Inheritance
All Implemented Interfaces
com.typesafe.config.impl.SimpleIncluder.NameSource

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public ConfigParseable
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ClasspathNameSourceback to summary
pack-priv ClasspathNameSource()

Method Detail

nameToParseableback to summary
public ConfigParseable nameToParseable(String name, ConfigParseOptions parseOptions)

Implements com.typesafe.config.impl.SimpleIncluder.NameSource.nameToParseable.

Annotations
@Override
com.typesafe.config.impl back to summary

pack-priv Class ConfigImpl.ClasspathNameSourceWithClass

extends Object
implements NameSource
Class Inheritance
  • java.lang.Object
  • com.typesafe.config.impl.ConfigImpl.ClasspathNameSourceWithClass
All Implemented Interfaces
com.typesafe.config.impl.SimpleIncluder.NameSource

Field Summary

Modifier and TypeField and Description
private final Class<?>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ConfigParseable
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

klassback to summary
private final Class<?> klass

Constructor Detail

ClasspathNameSourceWithClassback to summary
public ClasspathNameSourceWithClass(Class<?> klass)

Method Detail

nameToParseableback to summary
public ConfigParseable nameToParseable(String name, ConfigParseOptions parseOptions)

Implements com.typesafe.config.impl.SimpleIncluder.NameSource.nameToParseable.

Annotations
@Override
com.typesafe.config.impl back to summary

private Class ConfigImpl.DebugHolder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final Map<String, Boolean>
private static String
private static String
private static final boolean
private static final boolean

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static Map<String, Boolean>
pack-priv static boolean
pack-priv static boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

diagnosticsback to summary
private static final Map<String, Boolean> diagnostics
LOADSback to summary
private static String LOADS
SUBSTITUTIONSback to summary
private static String SUBSTITUTIONS
traceLoadsEnabledback to summary
private static final boolean traceLoadsEnabled
traceSubstitutionsEnabledback to summary
private static final boolean traceSubstitutionsEnabled

Constructor Detail

DebugHolderback to summary
private DebugHolder()

Method Detail

loadDiagnosticsback to summary
private static Map<String, Boolean> loadDiagnostics()
traceLoadsEnabledback to summary
pack-priv static boolean traceLoadsEnabled()
traceSubstitutionsEnabledback to summary
pack-priv static boolean traceSubstitutionsEnabled()
com.typesafe.config.impl back to summary

private Class ConfigImpl.DefaultIncluderHolder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv static final ConfigIncluder

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

defaultIncluderback to summary
pack-priv static final ConfigIncluder defaultIncluder

Constructor Detail

DefaultIncluderHolderback to summary
private DefaultIncluderHolder()
com.typesafe.config.impl back to summary

private Class ConfigImpl.EnvVariablesHolder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv static volatile AbstractConfigObject

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

envVariablesback to summary
pack-priv static volatile AbstractConfigObject envVariables

Constructor Detail

EnvVariablesHolderback to summary
private EnvVariablesHolder()
com.typesafe.config.impl back to summary

private Class ConfigImpl.EnvVariablesOverridesHolder

extends Object
Class Inheritance
  • java.lang.Object
  • com.typesafe.config.impl.ConfigImpl.EnvVariablesOverridesHolder

Field Summary

Modifier and TypeField and Description
pack-priv static volatile AbstractConfigObject

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

envVariablesback to summary
pack-priv static volatile AbstractConfigObject envVariables

Constructor Detail

EnvVariablesOverridesHolderback to summary
private EnvVariablesOverridesHolder()
com.typesafe.config.impl back to summary

pack-priv Class ConfigImpl.FileNameSource

extends Object
implements NameSource
Class Inheritance
All Implemented Interfaces
com.typesafe.config.impl.SimpleIncluder.NameSource

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public ConfigParseable
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

FileNameSourceback to summary
pack-priv FileNameSource()

Method Detail

nameToParseableback to summary
public ConfigParseable nameToParseable(String name, ConfigParseOptions parseOptions)

Implements com.typesafe.config.impl.SimpleIncluder.NameSource.nameToParseable.

Annotations
@Override
com.typesafe.config.impl back to summary

private Class ConfigImpl.LoaderCache

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private Map<String, Config>
private WeakReference<ClassLoader>
private Config

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv synchronized Config
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cacheback to summary
private Map<String, Config> cache
currentLoaderback to summary
private WeakReference<ClassLoader> currentLoader
currentSystemPropertiesback to summary
private Config currentSystemProperties

Constructor Detail

LoaderCacheback to summary
pack-priv LoaderCache()

Method Detail

getOrElseUpdateback to summary
pack-priv synchronized Config getOrElseUpdate(ClassLoader loader, String key, Callable<Config> updater)
com.typesafe.config.impl back to summary

private Class ConfigImpl.LoaderCacheHolder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv static final ConfigImpl.LoaderCache

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cacheback to summary
pack-priv static final ConfigImpl.LoaderCache cache

Constructor Detail

LoaderCacheHolderback to summary
private LoaderCacheHolder()
com.typesafe.config.impl back to summary

private Class ConfigImpl.SystemPropertiesHolder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv static volatile AbstractConfigObject

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

systemPropertiesback to summary
pack-priv static volatile AbstractConfigObject systemProperties

Constructor Detail

SystemPropertiesHolderback to summary
private SystemPropertiesHolder()