@Target(value=TYPE) @Retention(value=RUNTIME) @Inherited @Documented public @interface HandleClassMetadata
ClassMetadataConverter
. Default
converters from DefaultConverters
annotated with @HandleClassMetadata
do not serialize type information nor do they use it during deserialization. For security reasons
class metadata is disabled by default. To enable it
GensonBuilder.useClassMetadata(boolean)
GensonBuilder.useClassMetadata(true)}ClassMetadataConverter
,
Genson.Builder.setWithClassMetadata(true)
Modifier and Type | Optional Element and Description |
---|---|
boolean |
deserialization |
boolean |
serialization
Set to false if you want to let the existing mechanism handle the class metadata for you.
|
public abstract boolean serialization
public abstract boolean deserialization
serialization()
Copyright © 2019. All rights reserved.