Class AbstractServiceInfo.Builder<B extends AbstractServiceInfo.Builder<B,T>,T extends ServiceInfo>

java.lang.Object
io.helidon.pico.api.AbstractServiceInfoBasics.Builder<B,T>
io.helidon.pico.api.AbstractServiceInfo.Builder<B,T>
Type Parameters:
B - the type of the builder
T - the type of the built instance
All Implemented Interfaces:
Builder<B,T>, ServiceInfo, ServiceInfoBasics, Supplier<T>
Direct Known Subclasses:
DefaultServiceInfo.Builder
Enclosing class:
AbstractServiceInfo

public abstract static class AbstractServiceInfo.Builder<B extends AbstractServiceInfo.Builder<B,T>,T extends ServiceInfo> extends AbstractServiceInfoBasics.Builder<B,T> implements ServiceInfo
Fluent API builder for T.
  • Field Details

    • externalContractsImplemented

      protected final Set externalContractsImplemented
      Field value for java.util.Set<java.lang.String> externalContractsImplemented().
  • Constructor Details

    • Builder

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

    • externalContractsImplemented

      public Set<String> externalContractsImplemented()
      Description copied from interface: ServiceInfo
      The managed services external contracts / interfaces. These should also be contained within ServiceInfoBasics.contractsImplemented(). External contracts are from other modules other than the module containing the implementation typically.
      Specified by:
      externalContractsImplemented in interface ServiceInfo
      Returns:
      the service external contracts implemented
      See Also:
    • activatorTypeName

      public Optional<String> activatorTypeName()
      Description copied from interface: ServiceInfo
      The management agent (i.e., the activator) that is responsible for creating and activating - typically build-time created.
      Specified by:
      activatorTypeName in interface ServiceInfo
      Returns:
      the activator type name
    • moduleName

      public Optional<String> moduleName()
      Description copied from interface: ServiceInfo
      The name of the ascribed module, if known.
      Specified by:
      moduleName in interface ServiceInfo
      Returns:
      the module name
    • externalContractsImplemented

      public B externalContractsImplemented(Collection<String> val)
      Setter for 'externalContractsImplemented'.
      Parameters:
      val - the new value
      Returns:
      this fluent builder
    • addExternalContractsImplemented

      public B addExternalContractsImplemented(Collection<String> val)
      Setter for 'externalContractsImplemented'.
      Parameters:
      val - the new value
      Returns:
      this fluent builder
    • addExternalContractsImplemented

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

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

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

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

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

      public B accept(T val)
      Description copied from class: AbstractServiceInfoBasics.Builder
      Accept and update from the provided value object.
      Overrides:
      accept in class AbstractServiceInfoBasics.Builder<B extends AbstractServiceInfo.Builder<B,T>,T extends ServiceInfo>
      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)
      Description copied from class: AbstractServiceInfoBasics.Builder
      Visits all attributes of io.helidon.pico.api.ServiceInfoBasics, calling the AttributeVisitor for each.
      Overrides:
      visitAttributes in class AbstractServiceInfoBasics.Builder<B extends AbstractServiceInfo.Builder<B,T>,T extends ServiceInfo>
      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