Class JsonBindingMediaSupportProvider

java.lang.Object
io.helidon.http.media.json.binding.JsonBindingMediaSupportProvider
All Implemented Interfaces:
ConfiguredProvider<MediaSupport>, Weighted, ConfiguredProvider<MediaSupport>, MediaSupportProvider, Comparable<Weighted>

public class JsonBindingMediaSupportProvider extends Object implements MediaSupportProvider, Weighted
Media support provider for Helidon JSON Binding media support.

This provider creates instances of JsonBindingSupport for handling JSON serialization and deserialization in HTTP requests and responses.

  • Constructor Details

    • JsonBindingMediaSupportProvider

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

    • configKey

      public String configKey()
      Description copied from interface: ConfiguredProvider
      Key this service implementation is stored under. This is also considered the service "type" when used in a list in configuration, to allow the same service defined more than once.
      Specified by:
      configKey in interface ConfiguredProvider<MediaSupport>
      Specified by:
      configKey in interface ConfiguredProvider<MediaSupport>
      Returns:
      key of this implementation
    • create

      public MediaSupport create(Config config, String name)
      Description copied from interface: ConfiguredProvider
      Create a new instance from the configuration located on the provided node.

      API Note: the default method implementation is provided for backward compatibility and will be removed in the next major version

      Specified by:
      create in interface ConfiguredProvider<MediaSupport>
      Parameters:
      config - located at ConfiguredProvider.configKey() node
      name - name of the configured implementation
      Returns:
      a new instance created from this config node
    • 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