Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1878 | jmachado | 1 | package com.owlike.genson.annotation; |
2 | |||
3 | import java.lang.annotation.Documented; |
||
4 | import java.lang.annotation.ElementType; |
||
5 | import java.lang.annotation.Inherited; |
||
6 | import java.lang.annotation.Retention; |
||
7 | import java.lang.annotation.RetentionPolicy; |
||
8 | import java.lang.annotation.Target; |
||
9 | |||
10 | /** |
||
11 | * Annotated Serializer/Deserializer/Converter with @HandleClassMetadata indicate that they will |
||
12 | * handle @class metadata during serialization and deserialization. By default it is handled by the |
||
13 | * library in {@link com.owlike.genson.convert.ClassMetadataConverter ClassMetadataConverter}. Default |
||
14 | * converters from {@link com.owlike.genson.convert.DefaultConverters DefaultConverters} annotated with @HandleClassMetadata |
||
15 | * do not serialize type information nor do they use it during deserialization. For security reasons |
||
16 | * class metadata is disabled by default. To enable it |
||
17 | * {@link com.owlike.genson.GensonBuilder#useClassMetadata(boolean)} |
||
18 | * GensonBuilder.useClassMetadata(true)} |
||
19 | * |
||
20 | * @author eugen |
||
21 | * @see com.owlike.genson.convert.ClassMetadataConverter ClassMetadataConverter |
||
22 | * @see com.owlike.genson.GensonBuilder#useClassMetadata(boolean) |
||
23 | * Genson.Builder.setWithClassMetadata(true) |
||
24 | */ |
||
25 | @1.5.0/docs/api/java/lang/annotation/Target.html">Target({1.5.0/docs/api/java/lang/annotation/ElementType.html">ElementType.TYPE}) |
||
26 | @1.5.0/docs/api/java/lang/annotation/Retention.html">Retention(1.5.0/docs/api/java/lang/annotation/RetentionPolicy.html">RetentionPolicy.RUNTIME) |
||
27 | @1.5.0/docs/api/java/lang/annotation/Inherited.html">Inherited |
||
28 | @1.5.0/docs/api/java/lang/annotation/Documented.html">Documented |
||
29 | public @interface HandleClassMetadata { |
||
30 | |||
31 | } |