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, FileConfigSource.Builder, 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
Methods inherited from interface Source.Builder
optional, optional, retryPolicyModifier and TypeMethodDescriptiondefault Boptional()Configure this source to be optional.optional(boolean optional) Whether the source is optional or not.retryPolicy(Supplier<? extends RetryPolicy> policy) Configure a retry policy to be used with this source.
-
Method Details
-
parser
Configure an explicit parser to be used with the source.- Parameters:
parser- parser to use- Returns:
- updated builder instance
-
mediaType
-