Module io.helidon.config
Package io.helidon.config
Class ConfigItem.BuilderBase<BUILDER extends ConfigItem.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends ConfigItem>
java.lang.Object
io.helidon.config.ConfigItem.BuilderBase<BUILDER,PROTOTYPE>
- Type Parameters:
BUILDER
- type of the builder extending this abstract builderPROTOTYPE
- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER,
PROTOTYPE>
- Direct Known Subclasses:
ConfigItem.Builder
- Enclosing interface:
ConfigItem
public abstract static class ConfigItem.BuilderBase<BUILDER extends ConfigItem.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends ConfigItem>
extends Object
implements Prototype.Builder<BUILDER,PROTOTYPE>
Fluent API builder base for
ConfigItem
.-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
Generated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Whether to cache this handled config item or not.cacheItem
(boolean cacheItem) Whether to cache this handled config item or not.from
(ConfigItem prototype) Update this builder from an existing prototype instance.from
(ConfigItem.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.item()
Handled config item.Handled config item.protected void
Handles providers and decorators.toString()
protected void
Validates required properties.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.helidon.builder.api.Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
Update this builder from an existing prototype instance. This method disables automatic service discovery.- Parameters:
prototype
- existing prototype to update this builder from- Returns:
- updated builder instance
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder
- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
cacheItem
Whether to cache this handled config item or not. If overall caching is disabled, this will not turn it on even if set to true.- Parameters:
cacheItem
- whether to cache handled config item- Returns:
- updated builder instance
- See Also:
-
item
Handled config item.- Parameters:
item
- config item- Returns:
- updated builder instance
- See Also:
-
cacheItem
public boolean cacheItem()Whether to cache this handled config item or not. If overall caching is disabled, this will not turn it on even if set to true.- Returns:
- the cache item
-
item
Handled config item.- Returns:
- the item
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-