Interface MediaContextConfig

All Superinterfaces:
Prototype.Api, Prototype.Factory<MediaContext>
All Known Implementing Classes:
MediaContextConfig.BuilderBase.MediaContextConfigImpl

public interface MediaContextConfig extends Prototype.Api
Interface generated from definition. Please add javadoc to the definition interface.
See Also:
  • Method Details

    • builder

      static MediaContextConfig.Builder builder()
      Create a new fluent API builder to customize configuration.
      Returns:
      a new builder
    • builder

      Create a new fluent API builder from an existing instance.
      Parameters:
      instance - an existing instance used as a base for the builder
      Returns:
      a builder based on an instance
    • create

      static MediaContextConfig create(Config config)
      Create a new instance from configuration.
      Parameters:
      config - used to configure the new instance
      Returns:
      a new instance configured from configuration
    • create

      static MediaContextConfig create()
      Create a new instance with default values.
      Returns:
      a new instance
    • mediaSupports

      List<MediaSupport> mediaSupports()
      Media supports to use. This instance has priority over provider(s) discovered by service loader. The providers are used in order of calling this method, where the first support added is the first one to be queried for readers and writers.
      Returns:
      media supports
    • fallback

      Optional<MediaContext> fallback()
      Existing context to be used as a fallback for this context.
      Returns:
      media context to use if supports configured on this request cannot provide a good result
    • registerDefaults

      boolean registerDefaults()
      Should we register defaults of Helidon, such as String media support.
      Returns:
      whether to register default media supports