public class EndpointAsBeanProperty
extends com.fasterxml.jackson.databind.BeanProperty.Std
BeanProperty
implementation used for passing annotations
from JAX-RS endpoint into Jackson. This tries to imitate behavior
one would get if actual resource method was used as POJO property;
ideally this would be how implementation works but due JAX-RS API
limitations, we are only given annotations associated, and that
has to do.
NOTE: not yet used by JAX-RS provider, directly, as of Jackson 2.6.
Modifier and Type | Field and Description |
---|---|
com.fasterxml.jackson.databind.introspect.AnnotationMap |
_annotations |
protected Annotation[] |
_rawAnnotations |
static com.fasterxml.jackson.databind.PropertyName |
ENDPOINT_NAME |
Modifier | Constructor and Description |
---|---|
protected |
EndpointAsBeanProperty(EndpointAsBeanProperty base,
com.fasterxml.jackson.databind.JavaType newType) |
|
EndpointAsBeanProperty(com.fasterxml.jackson.databind.PropertyName name,
com.fasterxml.jackson.databind.JavaType type,
Annotation[] annotations) |
Modifier and Type | Method and Description |
---|---|
protected com.fasterxml.jackson.databind.introspect.AnnotationMap |
annotations() |
<A extends Annotation> |
getAnnotation(Class<A> acls) |
com.fasterxml.jackson.databind.BeanProperty.Std |
withType(com.fasterxml.jackson.databind.JavaType type) |
public static final com.fasterxml.jackson.databind.PropertyName ENDPOINT_NAME
protected transient Annotation[] _rawAnnotations
public com.fasterxml.jackson.databind.introspect.AnnotationMap _annotations
public EndpointAsBeanProperty(com.fasterxml.jackson.databind.PropertyName name, com.fasterxml.jackson.databind.JavaType type, Annotation[] annotations)
protected EndpointAsBeanProperty(EndpointAsBeanProperty base, com.fasterxml.jackson.databind.JavaType newType)
public com.fasterxml.jackson.databind.BeanProperty.Std withType(com.fasterxml.jackson.databind.JavaType type)
withType
in class com.fasterxml.jackson.databind.BeanProperty.Std
public <A extends Annotation> A getAnnotation(Class<A> acls)
getAnnotation
in interface com.fasterxml.jackson.databind.BeanProperty
getAnnotation
in class com.fasterxml.jackson.databind.BeanProperty.Std
protected com.fasterxml.jackson.databind.introspect.AnnotationMap annotations()
Copyright © 2016 FasterXML. All rights reserved.