Returns a Json representation of this path.
Returns a Json representation of this path. Works similar to get()
, except will return an empty Json object if
there is nothing at this level.
Json
Look up a deeper path below the current path.
Loads this path out as the defined type T
.
Loads this path out as the defined type T
.
the type to represent the current path
T
Combines a Json instance at this path.
Combines a Json instance at this path.
Combines a properties object at this path.
Combines a properties object at this path.
Combines a sequence of args at this path.
Combines a sequence of args at this path.
Combines a string of content auto-detected to JSON.
Combines a string of content auto-detected to JSON.
Loads defaults from this Properties object at this path.
Loads defaults from this Properties object at this path.
Loads defaults from this Json object at this path.
Loads defaults from this Json object at this path.
Loads defaults for a string of content auto-detected to JSON.
Loads defaults for a string of content auto-detected to JSON.
Loads defaults for a sequence of args.
Loads defaults for a sequence of args. This is primarily useful for loading command-line arguments.
True if this path exists in the Config
True if this path exists in the Config
Returns a Json representation of this path if there is anything defined at this level.
Returns a Json representation of this path if there is anything defined at this level.
Option[Json]
Initializes Profig.
Initializes Profig. This must be invoked prior to using. Multiple invocations are allowed, but initialization only occurs the first time. Additional calls will still merge args submitted by this method.
the command-line arguments to merge into the configuration, if any
Specialized version of init when being used to load configuration for use with a Macro at compile-time.
Specialized version of init when being used to load configuration for use with a Macro at compile-time. This is a work-around for parser limitations in Scala.js when running on the JVM.
Warning: this should only be used when being invoked from another Macro like the following:
context.eval(reify(profig.Config.initMacro(Nil)))
the command-line arguments to merge into the configuration, if any
Merges a Properties object to this path.
Merges a Properties object to this path.
Merges a Json object to this path.
Merges a Json object to this path.
Merges a string of content auto-detected to JSON.
Merges a string of content auto-detected to JSON.
Merges a sequence of args.
Merges a sequence of args. This is primarily useful for merging command-line arguments.
profig.ConfigApplication for a managed mechanism for this
the path defined within the configuration
the path defined within the configuration
Stores the supplied value into this path.
Stores the supplied value into this path.
the type of value
the value to store
Config provides access to environment variables, properties, and other configuration all merged together into one powerful system. Uses JSON internally to provide merging and integration. Paths are dot-separated.
profig.ConfigApplication for convenience initialization