Class AbstractPicoServicesConfig.Builder<B extends AbstractPicoServicesConfig.Builder<B,T>,T extends PicoServicesConfig>

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

public abstract static class AbstractPicoServicesConfig.Builder<B extends AbstractPicoServicesConfig.Builder<B,T>,T extends PicoServicesConfig> extends PicoServicesConfig implements Builder<B,T>
Fluent API builder for T.
  • Constructor Details

    • Builder

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

    • providerName

      public String providerName()
      Description copied from class: PicoServicesConfig
      The provider implementation name.
      Specified by:
      providerName in class PicoServicesConfig
      Returns:
      the provider implementation name
    • providerVersion

      public String providerVersion()
      Description copied from class: PicoServicesConfig
      The provider implementation version.
      Specified by:
      providerVersion in class PicoServicesConfig
      Returns:
      the provider implementation version
    • supportsDynamic

      public boolean supportsDynamic()
      Description copied from class: PicoServicesConfig
      Flag indicating whether the services registry supports dynamic behavior (key is PicoServicesConfig.KEY_SUPPORTS_DYNAMIC). Note that if the provider does not support this flag then permitting it via PicoServicesConfig.permitsDynamic() will have no affect. The default implementation of Pico supports dynamic, but does not permit it by default.
      Specified by:
      supportsDynamic in class PicoServicesConfig
      Returns:
      the flag indicating whether the services registry supports dynamic updates of the service registry post Pico startup
    • supportsReflection

      public boolean supportsReflection()
      Description copied from class: PicoServicesConfig
      Flag indicating whether the reflection is supported. Note that if the provider does not support this flag then permitting it via PicoServicesConfig.permitsReflection() will have no affect. The default implementation of Pico supports reflection only during compile-time operations using the Pico maven-plugin.
      Specified by:
      supportsReflection in class PicoServicesConfig
      Returns:
      the flag indicating whether reflection is supported during runtime operations
    • supportsCompileTime

      public boolean supportsCompileTime()
      Description copied from class: PicoServicesConfig
      Flag indicating whether the dependency injection model for the Application and Activator is capable for being produced at compile-time, and therefore used/loaded during runtime operations.
      Specified by:
      supportsCompileTime in class PicoServicesConfig
      Returns:
      the flag indicating whether the provider supports compile-time code generation of DI artifacts
    • supportsJsr330

      public boolean supportsJsr330()
      Description copied from class: PicoServicesConfig
      Flag indicating whether jsr330 is supported by the provider implementation.
      Specified by:
      supportsJsr330 in class PicoServicesConfig
      Returns:
      the flag indicating whether the provider supports the jsr330 specification
    • supportsJsr330Statics

      public boolean supportsJsr330Statics()
      Description copied from class: PicoServicesConfig
      Flag indicating whether jsr330 is supported by the provider implementation for the use on static injection points.
      Specified by:
      supportsJsr330Statics in class PicoServicesConfig
      Returns:
      the flag indicating whether the provider supports the jsr330 specification for the use of static injection points
    • supportsJsr330Privates

      public boolean supportsJsr330Privates()
      Description copied from class: PicoServicesConfig
      Flag indicating whether jsr330 is supported by the provider implementation for the use on private injection points.
      Specified by:
      supportsJsr330Privates in class PicoServicesConfig
      Returns:
      the flag indicating whether the provider supports the jsr330 specification for the use of private injection points
    • supportsContextualLookup

      public boolean supportsContextualLookup()
      Description copied from class: PicoServicesConfig
      Flag indicating whether contextual lookup is supported via Services.contextualServices(InjectionPointInfo).
      Specified by:
      supportsContextualLookup in class PicoServicesConfig
      Returns:
      the flag indicating whether the provider supports contextual lookup
    • providerName

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

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

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

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

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

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

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

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

      public B supportsContextualLookup(boolean val)
      Setter for 'supportsContextualLookup'.
      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.pico.api.PicoServicesConfig, 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