Interface Builder<B extends Builder<B,T>,T>

Type Parameters:
B - Type of the builder
T - Type of the built instance
All Superinterfaces:
Supplier<T>
All Known Subinterfaces:
BaseMetricsSettings.Builder, ComponentMetricsSettings.Builder, Config.Builder, ConfigNode.ListNode.Builder, DbClientProviderBuilder<T>, FormBuilder<B,T>, KeyPerformanceIndicatorMetricsSettings.Builder, KeyPerformanceIndicatorMetricsSettings.Builder, MetricsSettings.Builder, MetricsSupport.Builder<B,T>, OpenApiUi.Builder<B,T>, OpenTracingTracerBuilder<T>, RegistryFilterSettings.Builder, RegistrySettings.Builder, ResponseBuilder<B,T,X>, RestServiceSettings.Builder, Router.Builder, Span.Builder<B>, TracerBuilder<T>
All Known Implementing Classes:
AbacProvider.Builder, AbstractLogEntry.Builder, AccessLogSupport.Builder, AllowList.Builder, AnnotationAnalyzer.AnalyzerResponse.Builder, ApiEntityResponse.Builder, ApiOptionalResponse.Builder, ApiOptionalResponse.BuilderBase, ApiResponse.Builder, AppRoleVaultAuth.Builder, AqConfigBuilder, AqConnector.AqConnectorBuilder, AsymmetricCipher.Builder, Async.Builder, AuthenticationResponse.Builder, AuthorizationResponse.Builder, BufferedEmittingPublisher.Builder, Bulkhead.Builder, Channel.Builder, CircuitBreaker.Builder, ClasspathConfigSource.Builder, ClasspathOverrideSource.Builder, ClientMethodDescriptor.Builder, ClientServiceDescriptor.Builder, ComponentTracingConfig.Builder, CompositeProviderSelectionPolicy.Builder, ConfigContent.NodeContent.Builder, ConfigContent.OverrideContent.Builder, ConfigParser.Content.Builder, ConfigSources.SystemPropertiesConfigSource.Builder, ConfigVaultProvider.Builder, ConnectionPool.Builder, ConnectorConfigBuilder, ContentDisposition.Builder, Context.Builder, CorsSupport.Builder, CorsSupportBase.Builder, CrossOriginConfig.Builder, CubbyholeSecurityProvider.CubbyholeSecretConfig.Builder, DbClient.Builder, DbClientContext.Builder, DbClientHealthCheck.Builder, DbClientMetricBuilder, DbClientTracing.Builder, DbMapperManager.Builder, DbStatementContext.Builder, DbStatements.Builder, DefaultMediaSupport.Builder, DirectHandler.TransportResponse.Builder, DirectoryConfigSource.Builder, DiskSpaceHealthCheck.Builder, EmbeddedStorageManagerBuilder, Emitter.Builder, EncryptedJwt.Builder, EndpointConfig.Builder, EtcdConfigSourceBuilder, EvictableCache.Builder, Fallback.Builder, FaultTolerance.Builder, FaultTolerance.TypedBuilder, FileConfigSource.Builder, FileFormParams.Builder, FileOverrideSource.Builder, FileSystemWatcher.Builder, FormParams.Builder, GitConfigSourceBuilder, GoogleTokenProvider.Builder, Grant.Builder, GraphQlSupport.Builder, GrpcChannelDescriptor.Builder, GrpcChannelsProvider.Builder, GrpcClientSecurity.Builder, GrpcProxyBuilder, GrpcRouting.Builder, GrpcServer.Builder, GrpcServerConfiguration.Builder, GrpcServiceBuilder, GrpcTlsDescriptor.Builder, HashDigest.Builder, HeaderAtnOutboundConfig.Builder, HeaderAtnProvider.Builder, HeaderLogEntry.Builder, HealthSupport.Builder, HeapMemoryHealthCheck.Builder, HelidonRestServiceSupport.Builder, HelidonServiceLoader.Builder, HmacDigest.Builder, HoconConfigParserBuilder, HostLogEntry.Builder, HttpBasicAuthProvider.Builder, HttpBasicOutboundConfig.Builder, HttpDigestAuthProvider.Builder, HttpSignProvider.Builder, IdcsMtRoleMapperProvider.Builder, IdcsMtRoleMapperRxProvider.Builder, IdcsRoleMapperProvider.Builder, IdcsRoleMapperRxProvider.Builder, InboundClientDefinition.Builder, InjectionProvider.InstanceConfig.Builder, InMemoryOverrideSource.Builder, InvocationHandler.Builder, IoMulti.MultiFromByteChannelBuilder, IoMulti.MultiFromInputStreamBuilder, IoMulti.MultiToByteChannelBuilder, IoMulti.OutputStreamMultiBuilder, JaegerTracerBuilder, JavaxElPolicyExecutor.Builder, JdbcDbClientProviderBuilder, JerseySupport.Builder, JmsConfigBuilder, JmsConnector.JmsConnectorBuilder, JmsMessage.OutgoingJmsMessageBuilder, JsonpSupport.Builder, JwkEC.Builder, JwkKeys.Builder, JwkOctet.Builder, JwkRSA.Builder, Jwt.Builder, JwtAuthProvider.Builder, JwtHeaders.Builder, JwtProvider.Builder, JwtProvider.JwtOutboundTarget.Builder, K8sVaultAuth.Builder, KafkaConfigBuilder, KafkaPublisher.Builder, KafkaSubscriber.Builder, KeyConfig.Builder, KeyConfig.KeystoreBuilder, KeyConfig.PemBuilder, Kv1SecurityProvider.Kv1SecretConfig.Builder, Kv2SecurityProvider.Kv2SecretConfig.Builder, ListNodeBuilderImpl, LruCache.Builder, MapConfigSource.Builder, MapConfigSource.MapBuilder, MappedCrossOriginConfig.Builder, MapperManager.Builder, MediaContext.Builder, MediaType.Builder, Messaging.Builder, MeterRegistryFactory.Builder, MetricsSupport.Builder, MicrometerSupport.Builder, MicrostreamCacheConfigurationBuilder, MicrostreamHealthCheck.Builder, MicrostreamMetricsSupport.Builder, MongoDbClientProviderBuilder, MPOpenAPIBuilder, MultiTappedPublisher.Builder, Neo4j.Builder, Neo4jMetricsSupport.Builder, OciCertificatesTlsManagerConfig.Builder, OciConfig.Builder, OciConfig.BuilderBase, OciMetricsSupport.Builder, OidcConfig.Builder, OidcProvider.Builder, OidcSupport.Builder, OpenAPISupport.Builder, OpenApiUiBase.Builder, OutboundConfig.Builder, OutboundSecurityClientBuilder, OutboundSecurityResponse.Builder, OutboundTarget.Builder, OutboundTargetDefinition.Builder, PathTracingConfig.Builder, PolicyValidator.Builder, PolicyValidator.PolicyConfig.Builder, PollingStrategies.ScheduledBuilder, Principal.Builder, PrometheusSupport.Builder, Proxy.Builder, ReadableBodyPart.Builder, ReadableBodyPartHeaders.Builder, RequestLineLogEntry.Builder, RestApi.Builder, RestException.Builder, Retry.Builder, Retry.DelayingRetryPolicy.Builder, Retry.ExponentialRetryPolicy.Builder, Retry.FibonacciRetryPolicy.Builder, Retry.JitterRetryPolicy.Builder, Role.Builder, RoleValidator.RoleConfig.Builder, Routing.Builder, ScheduledPollingStrategy.Builder, ScheduledThreadPoolSupplier.Builder, Scheduling.CronBuilder, Scheduling.FixedRateBuilder, ScopeValidator.Builder, Security.Builder, SecurityClientBuilder, SecurityContext.Builder, SecurityEnvironment.Builder, SecurityFeature.Builder, SecurityLevel.SecurityLevelBuilder, SecurityTime.Builder, SEOpenAPISupportBuilder, SerializationConfig.Builder, Server.Builder, ServerConfiguration.Builder, ServiceDescriptor.Builder, SetCookie.Builder, Signature.Builder, SignedHeadersConfig.Builder, SimpleRetryPolicy.Builder, SizeLogEntry.Builder, SocketConfiguration.Builder, SpanLogTracingConfig.Builder, SpanTracingConfig.Builder, SSLContextBuilder, StaticContentSupport.Builder, StaticContentSupport.ClassPathBuilder, StaticContentSupport.FileBasedBuilder, StaticContentSupport.FileSystemBuilder, StatusLogEntry.Builder, Subject.Builder, SymmetricCipher.Builder, TenantConfig.Builder, ThreadPoolSupplier.Builder, Timeout.Builder, TimestampLogEntry.Builder, TimeTakenLogEntry.Builder, TimeValidator.TimeConfig.Builder, TokenCredential.Builder, TokenHandler.Builder, TokenVaultAuth.Builder, TracingConfig.Builder, TransitSecurityProvider.TransitDigestConfig.Builder, TransitSecurityProvider.TransitEncryptionConfig.Builder, UrlConfigSource.Builder, UrlOverrideSource.Builder, UserLogEntry.Builder, Vault.Builder, VaultOptionalResponse.Builder, VaultOptionalResponse.BuilderBase, VaultRestApi.Builder, VaultRestApi.BuilderBase, VaultRestException.Builder, VaultToken.Builder, VaultTokenBase.Builder, WebClient.Builder, WebClientTls.Builder, WebServer.Builder, WebServerTls.Builder, WebSocketRouting.Builder, WebTracingConfig.Builder, WriteableBodyPart.Builder, WriteableBodyPartHeaders.Builder, WriteableMultiPart.Builder, ZipkinTracerBuilder
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Builder<B extends Builder<B,T>,T> extends Supplier<T>
Interface for builders, to be able to accept a builder in addition to an instance.

This interface is similar to Supplier as it provides an instance, only for classes that act as instance builders (fluent API builder pattern), where method Supplier.get() would be misleading.

  • Method Summary

    Modifier and Type
    Method
    Description
    Build the instance from this builder.
    default T
    get()
     
    default B
    Instance of this builder as the correct type.
    default B
    update(Consumer<B> consumer)
    Update the builder in a fluen API way.
  • Method Details

    • build

      T build()
      Build the instance from this builder.
      Returns:
      instance of the built type
    • update

      default B update(Consumer<B> consumer)
      Update the builder in a fluen API way.
      Parameters:
      consumer - consumer of the builder instance
      Returns:
      updated builder instance
    • identity

      default B identity()
      Instance of this builder as the correct type.
      Returns:
      this instance typed to correct type
    • get

      default T get()
      Specified by:
      get in interface Supplier<B extends Builder<B,T>>