Module io.helidon.builder.config
Package io.helidon.builder.config.spi
Class AbstractConfigBeanInfo.Builder<B extends AbstractConfigBeanInfo.Builder<B,T>,T extends ConfigBean>
java.lang.Object
io.helidon.builder.config.spi.AbstractConfigBeanInfo.Builder<B,T>
- Type Parameters:
B- the type of the builderT- the type of the built instance
- All Implemented Interfaces:
ConfigBeanInfo,io.helidon.common.Builder<B,,T> Annotation,Supplier<T>
- Direct Known Subclasses:
MetaConfigBeanInfo.Builder
- Enclosing class:
AbstractConfigBeanInfo
public abstract static class AbstractConfigBeanInfo.Builder<B extends AbstractConfigBeanInfo.Builder<B,T>,T extends ConfigBean>
extends Object
implements ConfigBeanInfo, io.helidon.common.Builder<B,T>
Fluent API builder for
T.-
Nested Class Summary
Nested classes/interfaces inherited from class io.helidon.builder.config.ConfigBean
ConfigBean.LevelType -
Field Summary
Fields inherited from interface io.helidon.builder.config.spi.ConfigBeanInfo
TAG_AT_LEAST_ONE, TAG_DRIVES_ACTIVATION, TAG_KEY, TAG_LEVEL_TYPE, TAG_REPEATABLE, TAG_WANT_DEFAULT_CONFIG_BEAN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAccept and update from the provided value object.Class<? extends Annotation>booleanatLeastOne(boolean val) Setter for 'atLeastOne'.booleandrivesActivation(boolean val) Setter for 'drivesActivation'.Setter for 'levelType'.booleanrepeatable(boolean val) Setter for 'repeatable'.value()Setter for 'value'.<T> voidvisitAttributes(AttributeVisitor<T> visitor, T userDefinedCtx) Visits all attributes of io.helidon.builder.config.spi.ConfigBeanInfo, calling theAttributeVisitorfor each.booleanwantDefaultConfigBean(boolean val) Setter for 'wantDefaultConfigBean'.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.common.Builder
build, get, identity, update
-
Constructor Details
-
Builder
protected Builder()Fluent API builder constructor.
-
-
Method Details
-
value
-
drivesActivation
public boolean drivesActivation() -
atLeastOne
public boolean atLeastOne() -
repeatable
public boolean repeatable() -
wantDefaultConfigBean
public boolean wantDefaultConfigBean() -
levelType
-
annotationType
- Specified by:
annotationTypein interfaceAnnotation
-
value
Setter for 'value'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
drivesActivation
Setter for 'drivesActivation'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
atLeastOne
Setter for 'atLeastOne'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
repeatable
Setter for 'repeatable'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
wantDefaultConfigBean
Setter for 'wantDefaultConfigBean'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
levelType
Setter for 'levelType'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
accept
Accept and update from the provided value object.- Parameters:
val- the value object to copy from- Returns:
- this instance typed to correct type
-
visitAttributes
Visits all attributes of io.helidon.builder.config.spi.ConfigBeanInfo, calling theAttributeVisitorfor each.- Type Parameters:
T- type of the user defined context- Parameters:
visitor- the visitor called for each attributeuserDefinedCtx- any object you wish to pass to each visit call
-