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 builder
T - 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.
  • Constructor Details

    • Builder

      protected Builder()
      Fluent API builder constructor.
  • Method Details

    • value

      public String value()
    • drivesActivation

      public boolean drivesActivation()
    • atLeastOne

      public boolean atLeastOne()
    • repeatable

      public boolean repeatable()
    • wantDefaultConfigBean

      public boolean wantDefaultConfigBean()
    • levelType

      public ConfigBean.LevelType levelType()
    • annotationType

      public Class<? extends Annotation> annotationType()
      Specified by:
      annotationType in interface Annotation
    • value

      public B value(String val)
      Setter for 'value'.
      Parameters:
      val - the new value
      Returns:
      this fluent builder
    • drivesActivation

      public B drivesActivation(boolean val)
      Setter for 'drivesActivation'.
      Parameters:
      val - the new value
      Returns:
      this fluent builder
    • atLeastOne

      public B atLeastOne(boolean val)
      Setter for 'atLeastOne'.
      Parameters:
      val - the new value
      Returns:
      this fluent builder
    • repeatable

      public B repeatable(boolean val)
      Setter for 'repeatable'.
      Parameters:
      val - the new value
      Returns:
      this fluent builder
    • wantDefaultConfigBean

      public B wantDefaultConfigBean(boolean val)
      Setter for 'wantDefaultConfigBean'.
      Parameters:
      val - the new value
      Returns:
      this fluent builder
    • levelType

      public B levelType(ConfigBean.LevelType val)
      Setter for 'levelType'.
      Parameters:
      val - the new value
      Returns:
      this fluent builder
    • accept

      public B accept(T val)
      Accept and update from the provided value object.
      Parameters:
      val - the value object to copy from
      Returns:
      this instance typed to correct type
    • visitAttributes

      public <T> void visitAttributes(AttributeVisitor<T> visitor, T userDefinedCtx)
      Visits all attributes of io.helidon.builder.config.spi.ConfigBeanInfo, calling the AttributeVisitor for each.
      Type Parameters:
      T - type of the user defined context
      Parameters:
      visitor - the visitor called for each attribute
      userDefinedCtx - any object you wish to pass to each visit call