Package com.fasterxml.jackson.jaxrs.util
Class EndpointAsBeanProperty
- java.lang.Object
-
- com.fasterxml.jackson.databind.BeanProperty.Std
-
- com.fasterxml.jackson.jaxrs.util.EndpointAsBeanProperty
-
- All Implemented Interfaces:
com.fasterxml.jackson.databind.BeanProperty
,com.fasterxml.jackson.databind.util.Named
,java.io.Serializable
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.9
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description com.fasterxml.jackson.databind.introspect.AnnotationMap
_annotations
protected java.lang.annotation.Annotation[]
_rawAnnotations
static com.fasterxml.jackson.databind.PropertyName
ENDPOINT_NAME
private static com.fasterxml.jackson.databind.introspect.AnnotationMap
NO_ANNOTATIONS
private static long
serialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description EndpointAsBeanProperty(com.fasterxml.jackson.databind.PropertyName name, com.fasterxml.jackson.databind.JavaType type, java.lang.annotation.Annotation[] annotations)
protected
EndpointAsBeanProperty(EndpointAsBeanProperty base, com.fasterxml.jackson.databind.JavaType newType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.fasterxml.jackson.databind.introspect.AnnotationMap
annotations()
<A extends java.lang.annotation.Annotation>
AgetAnnotation(java.lang.Class<A> acls)
com.fasterxml.jackson.databind.BeanProperty.Std
withType(com.fasterxml.jackson.databind.JavaType type)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
ENDPOINT_NAME
public static final com.fasterxml.jackson.databind.PropertyName ENDPOINT_NAME
-
NO_ANNOTATIONS
private static final com.fasterxml.jackson.databind.introspect.AnnotationMap NO_ANNOTATIONS
-
_rawAnnotations
protected transient java.lang.annotation.Annotation[] _rawAnnotations
-
_annotations
public com.fasterxml.jackson.databind.introspect.AnnotationMap _annotations
-
-
Constructor Detail
-
EndpointAsBeanProperty
public EndpointAsBeanProperty(com.fasterxml.jackson.databind.PropertyName name, com.fasterxml.jackson.databind.JavaType type, java.lang.annotation.Annotation[] annotations)
-
EndpointAsBeanProperty
protected EndpointAsBeanProperty(EndpointAsBeanProperty base, com.fasterxml.jackson.databind.JavaType newType)
-
-
Method Detail
-
withType
public com.fasterxml.jackson.databind.BeanProperty.Std withType(com.fasterxml.jackson.databind.JavaType type)
- Overrides:
withType
in classcom.fasterxml.jackson.databind.BeanProperty.Std
-
getAnnotation
public <A extends java.lang.annotation.Annotation> A getAnnotation(java.lang.Class<A> acls)
- Specified by:
getAnnotation
in interfacecom.fasterxml.jackson.databind.BeanProperty
- Overrides:
getAnnotation
in classcom.fasterxml.jackson.databind.BeanProperty.Std
-
annotations
protected com.fasterxml.jackson.databind.introspect.AnnotationMap annotations()
-
-