Annotation Interface TripViaJOS


@Documented @Retention(RUNTIME) @Target(TYPE) public @interface TripViaJOS
Annotation to express that the annotated class must be serialized via the old-school Java Object Serialization (JOS).

This is only the last resort if the class cannot be serialized via TRIP, and it is not possible to create an application-specific TripType, define a CanonicalConstructor or create a dedicated TripComponentProvider or provide a TripInstanceCreator.

If the class cannot be annotated (e.g., because it is 3rd party), there is still the option to replace the TripFactory and override DefaultTripFactory#createType(Class) and/or replace ObjectTypeBuilder.