java.lang.Object
io.helidon.config.OverrideSources
Class provides access to built-in
OverrideSource implementations.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionCreates new instance of Classpath OverrideSource Builder to be used to bootstrap OverrideSource instance from specified resource.static OverrideSourceCreates a new instance odOverrideSourcefrom a map of wildcards to values.static OverrideSourceempty()An empty implementation ofOverrideSource.static FileOverrideSource.BuilderCreates new instance of the File OverrideSource Builder to be used to bootstrap an File OverrideSource instance.static UrlOverrideSource.BuilderCreates new instance of the URL OverrideSource Builder to be used to bootstrap an URL OverrideSource instance.
-
Method Details
-
empty
An empty implementation ofOverrideSource.A single instance is hold, so the return value is always the same.
- Returns:
- an empty implementation of
OverrideSource
-
create
Creates a new instance odOverrideSourcefrom a map of wildcards to values.Note that
Mapdoes not guarantee the ordering of the items, but overrides are resolved in specified order. When more than one of the overrides keys might match, the first of them will be applied.- Parameters:
overrideValues- a map of wildcards to values- Returns:
- a new instance of
OverrideSource
-
classpath
Creates new instance of Classpath OverrideSource Builder to be used to bootstrap OverrideSource instance from specified resource.The name of a resource is a '
/'-separated full path name that identifies the resource. If the resource name has a leading slash then it is dropped before lookup.- Parameters:
resourceName- a name of the resource- Returns:
- new Builder instance
-
file
Creates new instance of the File OverrideSource Builder to be used to bootstrap an File OverrideSource instance.- Parameters:
file- a file with an override value map- Returns:
- an instance of builder
-
url
Creates new instance of the URL OverrideSource Builder to be used to bootstrap an URL OverrideSource instance.- Parameters:
url- an URL with an override value map- Returns:
- an instance of builder
-