Package org.infinispan.commons.marshall
Annotation Interface SerializeWith
@Retention(RUNTIME)
@Target(TYPE)
@Inherited
@Documented
@Deprecated(forRemoval=true,
since="10.0")
public @interface SerializeWith
Deprecated, for removal: This API element is subject to removal in a future version.
Indicate that this class should be serialized with an instance of the given
Externalizer
class.
Any externalizer type referred by this annotation must be either Serializable
or Externalizable
because the marshalling infrastructure will ship an instance of the externalizer to any node
that's no aware of this externalizer, hence allowing for dynamic externalizer discovery.
- Since:
- 5.0
- Author:
- Galder ZamarreƱo
-
Required Element Summary
Modifier and TypeRequired ElementDescriptionClass
<? extends Externalizer<?>> Deprecated, for removal: This API element is subject to removal in a future version.Specify the externalizer class to be used by the annotated class.
-
Element Details
-
value
Class<? extends Externalizer<?>> valueDeprecated, for removal: This API element is subject to removal in a future version.Specify the externalizer class to be used by the annotated class.- Returns:
- the externalizer type
-
SerializationContextInitializer
and utilise ProtoStream annotations on Java objects instead, or specify a customMarshaller
implementation via the SerializationConfiguration.