Class FileConfigSource.Builder

All Implemented Interfaces:
Builder<FileConfigSource.Builder,FileConfigSource>, ParsableSource.Builder<FileConfigSource.Builder>, PollableSource.Builder<FileConfigSource.Builder>, Source.Builder<FileConfigSource.Builder>, WatchableSource.Builder<FileConfigSource.Builder,Path>, Supplier<FileConfigSource>
Enclosing class:

File ConfigSource Builder.

It allows to configure following properties:

  • path - configuration file path;
  • optional - is existence of configuration resource optional, or mandatory (by default)?
  • media-type - configuration content media type to be used to look for appropriate ConfigParser;
  • parser - or directly set ConfigParser instance to be used to parse the source;

If media-type not set it tries to guess it from file extension.