com.couchbase.client.deps.com.fasterxml.jackson.annotation.JsonFilter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core-io Show documentation
Show all versions of core-io Show documentation
The official Couchbase JVM Core IO Library
package com.couchbase.client.deps.com.fasterxml.jackson.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Annotation used to indicate which logical filter is to be used
* for filtering out properties of type (class) annotated;
* association made by this annotation declaring ids of filters,
* and com.couchbase.client.deps.com.fasterxml.jackson.databind.ObjectMapper
(or objects
* it delegates to) providing matching filters by id.
*
* Filters to use are usually of type
* com.couchbase.client.deps.com.fasterxml.jackson.databind.ser.BeanPropertyFilter
and
* are registered through com.couchbase.client.deps.com.fasterxml.jackson.databind.ObjectMapper
*
* Since 2.3, this annotation can also be used on properties (fields, methods,
* constructor parameters).
*/
@Target({ElementType.ANNOTATION_TYPE, ElementType.TYPE,
ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER // new in 2.3
})
@Retention(RetentionPolicy.RUNTIME)
@com.couchbase.client.deps.com.fasterxml.jackson.annotation.JacksonAnnotation
public @interface JsonFilter
{
/**
* Id of filter to use; if empty String (""), no filter is to be used.
*/
public String value();
}