Class JsonbMediaSupportProvider

java.lang.Object
io.helidon.nima.http.media.jsonb.JsonbMediaSupportProvider
All Implemented Interfaces:
Weighted, MediaSupportProvider, Comparable<Weighted>

public class JsonbMediaSupportProvider extends Object implements MediaSupportProvider, Weighted
ServiceLoader provider implementation for JSON Binding media support.
  • Constructor Details

    • JsonbMediaSupportProvider

      @Deprecated public JsonbMediaSupportProvider()
      Deprecated.
      This class should be only instantiated as part of java ServiceLoader.
  • Method Details

    • configKey

      public String configKey()
      Description copied from interface: MediaSupportProvider
      Configuration key of this media support provider.
      Specified by:
      configKey in interface MediaSupportProvider
      Returns:
      config key to be used when getting config node to use with MediaSupportProvider.create(io.helidon.common.config.Config)
    • create

      public MediaSupport create(Config config)
      Description copied from interface: MediaSupportProvider
      Create media support based on the provided configuration.
      Specified by:
      create in interface MediaSupportProvider
      Parameters:
      config - configuration of the media support
      Returns:
      a new media support to provide readers and writers
    • weight

      public double weight()
      Description copied from interface: Weighted
      Weight of this class (maybe because it is defined dynamically, so it cannot be defined by an annotation). If not dynamic, you can use the Weight annotation rather than implementing this interface as long as it is supported by the library using this Weighted.
      Specified by:
      weight in interface Weighted
      Returns:
      the weight of this service, must be a non-negative number