- java.lang.Object
-
- io.helidon.config.AbstractSourceBuilder<ClasspathOverrideSource.Builder,Void>
-
- io.helidon.config.ClasspathOverrideSource.Builder
-
- All Implemented Interfaces:
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>
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
OverrideSourceismandatoryand theresourcedoes not exist thenOverrideSource.load()throwsConfigException.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClasspathOverrideSourcebuild()Builds new instance of Classpath OverrideSource.ClasspathOverrideSource.Builderconfig(Config metaConfig)Update builder from meta configuration.ClasspathOverrideSource.Builderresource(String resource)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 Detail
-
build
public ClasspathOverrideSource build()
Builds new instance of Classpath OverrideSource.- Specified by:
buildin interfaceBuilder<ClasspathOverrideSource>- Returns:
- new instance of Classpath OverrideSource.
-
config
public ClasspathOverrideSource.Builder config(Config metaConfig)
Update builder from meta configuration.- Overrides:
configin classAbstractSourceBuilder<ClasspathOverrideSource.Builder,Void>- Parameters:
metaConfig- meta configuration to load this override source from- Returns:
- updated builder instance
-
resource
public ClasspathOverrideSource.Builder resource(String resource)
Configure the classpath resource to be used as a source.- Parameters:
resource- classpath resource path- Returns:
- updated builder instance
-
-