java.lang.Object
io.helidon.config.AbstractSourceBuilder<ClasspathOverrideSource.Builder,Void>
io.helidon.config.ClasspathOverrideSource.Builder
- All Implemented Interfaces:
Builder<ClasspathOverrideSource.Builder,
,ClasspathOverrideSource> Source.Builder<ClasspathOverrideSource.Builder>
,Supplier<ClasspathOverrideSource>
- Enclosing class:
ClasspathOverrideSource
public static final class ClasspathOverrideSource.Builder
extends AbstractSourceBuilder<ClasspathOverrideSource.Builder,Void>
implements Builder<ClasspathOverrideSource.Builder,ClasspathOverrideSource>
Classpath OverrideSource Builder.
It allows to configure following properties:
resource
- override resource name;mandatory
- is existence of override resource mandatory (by default) or isoptional
?
If the OverrideSource
is mandatory
and the resource
does not exist
then OverrideSource.load()
throws ConfigException
.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds new instance of Classpath OverrideSource.Update builder from meta configuration.Configure the classpath resource to be used as a source.Methods inherited from class io.helidon.config.AbstractSourceBuilder
changeWatcher, optional, pollingStrategy, retryPolicy
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.helidon.config.spi.Source.Builder
optional
-
Method Details
-
build
Builds new instance of Classpath OverrideSource.- Specified by:
build
in interfaceBuilder<ClasspathOverrideSource.Builder,
ClasspathOverrideSource> - Returns:
- new instance of Classpath OverrideSource.
-
config
Update builder from meta configuration.- Overrides:
config
in classAbstractSourceBuilder<ClasspathOverrideSource.Builder,
Void> - Parameters:
metaConfig
- meta configuration to load this override source from- Returns:
- updated builder instance
-
resource
Configure the classpath resource to be used as a source.- Parameters:
resource
- classpath resource path- Returns:
- updated builder instance
-