- 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
OverrideSource
ismandatory
and theresource
does not exist thenOverrideSource.load()
throwsConfigException
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClasspathOverrideSource
build()
Builds new instance of Classpath OverrideSource.ClasspathOverrideSource.Builder
config(Config metaConfig)
Update builder from meta configuration.ClasspathOverrideSource.Builder
resource(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:
build
in interfaceBuilder<ClasspathOverrideSource>
- Returns:
- new instance of Classpath OverrideSource.
-
config
public ClasspathOverrideSource.Builder config(Config metaConfig)
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
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
-
-