java.lang.Object
io.helidon.http.media.gson.GsonMediaSupportProvider
- All Implemented Interfaces:
ConfiguredProvider<MediaSupport>,Weighted,MediaSupportProvider,Comparable<Weighted>
ServiceLoader provider implementation for Gson media support.-
Field Summary
Fields inherited from interface io.helidon.common.Weighted
DEFAULT_WEIGHT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionKey this service implementation is stored under.Create a new instance from the configuration located on the provided node.doubleweight()Weight of this class (maybe because it is defined dynamically, so it cannot be defined by an annotation).
-
Constructor Details
-
GsonMediaSupportProvider
Deprecated.This class should be only instantiated as part of javaServiceLoader.
-
-
Method Details
-
configKey
Description copied from interface:ConfiguredProviderKey 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:
configKeyin interfaceConfiguredProvider<MediaSupport>- Returns:
- key of this implementation
-
create
Description copied from interface:ConfiguredProviderCreate a new instance from the configuration located on the provided node.- Specified by:
createin interfaceConfiguredProvider<MediaSupport>- Parameters:
config- located atConfiguredProvider.configKey()nodename- name of the configured implementation- Returns:
- a new instance created from this config node
-
weight
public double weight()Description copied from interface:WeightedWeight of this class (maybe because it is defined dynamically, so it cannot be defined by an annotation). If not dynamic, you can use theWeightannotation rather than implementing this interface as long as it is supported by the library using thisWeighted.
-