Interface ParsableSource.Builder<B extends ParsableSource.Builder<B>>

Type Parameters:
B - type of the builder, used when extending this builder (MyBuilder implements Builder<MyBuilder>
All Superinterfaces:
Source.Builder<B>
All Known Implementing Classes:
ClasspathConfigSource.Builder, EtcdConfigSourceBuilder, FileConfigSource.Builder, GitConfigSourceBuilder, UrlConfigSource.Builder
Enclosing interface:
ParsableSource

public static interface ParsableSource.Builder<B extends ParsableSource.Builder<B>> extends Source.Builder<B>
A builder for a parsable source.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    mediaType(String mediaType)
    Configure an explicit media type to be used with this source.
    Configure an explicit parser to be used with the source.

    Methods inherited from interface io.helidon.config.spi.Source.Builder

    optional, optional, retryPolicy
  • Method Details

    • parser

      B parser(ConfigParser parser)
      Configure an explicit parser to be used with the source.
      Parameters:
      parser - parser to use
      Returns:
      updated builder instance
    • mediaType

      B mediaType(String mediaType)
      Configure an explicit media type to be used with this source. This method is ignored if a parser was configured.
      Parameters:
      mediaType - media type to use
      Returns:
      updated builder instance