Class ClasspathOverrideSource.Builder
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 AbstractSourceBuilder
changeWatcher, optional, pollingStrategy, retryPolicyModifier and TypeMethodDescriptionprotected ClasspathOverrideSource.BuilderchangeWatcher(ChangeWatcher<Void> changeWatcher) Configure a change watcher.optional(boolean optional) Whether the source is optional or not.protected ClasspathOverrideSource.BuilderpollingStrategy(PollingStrategy pollingStrategy) Configure a polling strategy.retryPolicy(Supplier<? extends RetryPolicy> policy) Configure a retry policy to be used with this source.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault ClasspathOverrideSourceget()default ClasspathOverrideSource.Builderidentity()Instance of this builder as the correct type.default ClasspathOverrideSource.Builderupdate(Consumer<ClasspathOverrideSource.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Source.Builder
optionalModifier and TypeMethodDescriptiondefault ClasspathOverrideSource.Builderoptional()Configure this source to be optional.
-
Method Details
-
build
Builds new instance of Classpath OverrideSource.- Specified by:
buildin interfaceBuilder<ClasspathOverrideSource.Builder, ClasspathOverrideSource>- Returns:
- new instance of Classpath OverrideSource.
-
config
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
Configure the classpath resource to be used as a source.- Parameters:
resource- classpath resource path- Returns:
- updated builder instance
-