@Internal @Target(value=TYPE) @Retention(value=SOURCE) @Repeatable(value=SerdeImport.Repeated.class) public @interface SerdeImport
Modifier and Type | Required Element and Description |
---|---|
java.lang.Class<?> |
value
Allows making an external class or interface serializable.
|
Modifier and Type | Optional Element and Description |
---|---|
boolean |
deserializable |
java.lang.Class<?> |
mixin
Apply a mixin type.
|
boolean |
serializable |
public abstract java.lang.Class<?> value
Note that mixins only work with publicly accessible members (constructors, getters/setters etc.), anything not public will not be includes in the serialization/deserialization result.
public abstract java.lang.Class<?> mixin
objectMapper.addMixInAnnotations(..)
allowing to mixin
the annotations to the imported type.
Any fields or methods that match fields or methods declared in the type specified to value()
will have
the annotations applied to the imported type.