Package org.infinispan.marshall.core
Interface EncoderRegistry
- All Known Implementing Classes:
EncoderRegistryImpl
public interface EncoderRegistry
- Since:
- 9.1
-
Method Summary
Modifier and TypeMethodDescriptionPerforms a data conversion.getEncoder
(Class<? extends Encoder> encoderClass, short encoderId) Deprecated, for removal: This API element is subject to removal in a future version.<T extends Transcoder>
TgetTranscoder
(Class<T> clazz) getTranscoder
(MediaType type1, MediaType type2) Obtain an instance ofTranscoder
from the registry.getWrapper
(Class<? extends Wrapper> wrapperClass, byte wrapperId) Deprecated, for removal: This API element is subject to removal in a future version.Since 11.0.boolean
isConversionSupported
(MediaType from, MediaType to) boolean
isRegistered
(Class<? extends Encoder> encoderClass) Deprecated, for removal: This API element is subject to removal in a future version.void
registerEncoder
(Encoder encoder) Deprecated, for removal: This API element is subject to removal in a future version.void
registerTranscoder
(Transcoder transcoder) void
registerWrapper
(Wrapper wrapper) Deprecated, for removal: This API element is subject to removal in a future version.Since 11.0.
-
Method Details
-
getEncoder
@Deprecated(forRemoval=true, since="11.0") Encoder getEncoder(Class<? extends Encoder> encoderClass, short encoderId) Deprecated, for removal: This API element is subject to removal in a future version. -
isRegistered
@Deprecated(forRemoval=true, since="11.0") boolean isRegistered(Class<? extends Encoder> encoderClass) Deprecated, for removal: This API element is subject to removal in a future version. -
getWrapper
@Deprecated(forRemoval=true, since="11.0") Wrapper getWrapper(Class<? extends Wrapper> wrapperClass, byte wrapperId) Deprecated, for removal: This API element is subject to removal in a future version.Since 11.0. To be removed in 14.0, withDataConversion.getWrapper()
-
registerEncoder
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
encoder
-to be registered
.
-
registerWrapper
Deprecated, for removal: This API element is subject to removal in a future version.Since 11.0. To be removed in 14.0, withDataConversion.getWrapper()
-
registerTranscoder
-
getTranscoder
Obtain an instance ofTranscoder
from the registry.- Parameters:
type1
-MediaType
supported by the transcoder.type2
-MediaType
supported by the transcoder.- Returns:
- An instance of
Transcoder
capable of doing conversions between the supplied MediaTypes.
-
getTranscoder
-
isConversionSupported
-
convert
Performs a data conversion.- Parameters:
o
- object to convertfrom
- the object MediaTypeto
- the format to convert to- Returns:
- the object converted.
- Since:
- 11.0
-