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 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(MediaType 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