Class AbstractParsableConfigSource<S>

    • Constructor Detail

      • AbstractParsableConfigSource

        protected AbstractParsableConfigSource​(AbstractParsableConfigSource.Builder builder)
        Initializes config source from builder.
        Parameters:
        builder - builder to be initialized from
    • Method Detail

      • mediaType

        protected String mediaType()
        Returns source associated media type or null if unknown.
        Returns:
        source associated media type or null if unknown.
      • parser

        protected ConfigParser parser()
        Returns source associated parser or null if unknown.
        Returns:
        source associated parser or null if unknown.
      • content

        protected abstract ConfigParser.Content<S> content()
                                                    throws ConfigException
        Returns config source content.
        Returns:
        config source content. Never returns null.
        Throws:
        ConfigException - in case of loading of configuration from config source failed.