Subversion Repositories bacoAlunos

Rev

Blame | Compare with Previous | Last modification | View Log | RSS feed

package genson.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * This annotation is useful when you want to use a specific Converter for a property in a class,
 * but do not want to use it for all properties of that type. When you put this annotation on a
 * field, constructor parameter or setter/getter, Genson will use this Converter instead of any other.
 * <b>The Converter must have a default no arg constructor.</b>
 *
 * @author eugen
 */

@1.5.0/docs/api/java/lang/annotation/Target.html">Target({1.5.0/docs/api/java/lang/annotation/ElementType.html">ElementType.FIELD, 1.5.0/docs/api/java/lang/annotation/ElementType.html">ElementType.METHOD, 1.5.0/docs/api/java/lang/annotation/ElementType.html">ElementType.PARAMETER})
@1.5.0/docs/api/java/lang/annotation/Retention.html">Retention(1.5.0/docs/api/java/lang/annotation/RetentionPolicy.html">RetentionPolicy.RUNTIME)
@1.5.0/docs/api/java/lang/annotation/Inherited.html">Inherited
@1.5.0/docs/api/java/lang/annotation/Documented.html">Documented
public @interface JsonConverter {
  Class<? extends genson.Converter<?>> value();
}