Package org.infinispan.commons.marshall
Annotation Type SerializeWith
-
@Retention(RUNTIME) @Target(TYPE) @Inherited @Documented @Deprecated public @interface SerializeWith
Deprecated.since 10.0, will be removed in a future release. Please configure aSerializationContextInitializerand utilise ProtoStream annotations on Java objects instead, or specify a customMarshallerimplementation via the SerializationConfiguration.Indicate that this class should be serialized with an instance of the givenExternalizerclass.Any externalizer type referred by this annotation must be either
SerializableorExternalizablebecause 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
Required Elements Modifier and Type Required Element Description Class<? extends Externalizer<?>>valueDeprecated.Specify the externalizer class to be used by the annotated class.
-
-
-
Element Detail
-
value
Class<? extends Externalizer<?>> value
Deprecated.Specify the externalizer class to be used by the annotated class.- Returns:
- the externalizer type
-
-