Class EndpointAsBeanProperty
- java.lang.Object
-
- com.fasterxml.jackson.databind.BeanProperty.Std
-
- com.fasterxml.jackson.jakarta.rs.base.util.EndpointAsBeanProperty
-
- All Implemented Interfaces:
com.fasterxml.jackson.databind.BeanProperty,com.fasterxml.jackson.databind.util.Named,Serializable
public class EndpointAsBeanProperty extends com.fasterxml.jackson.databind.BeanProperty.StdBeanPropertyimplementation used for passing annotations from Jakarta-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 Jakarta-RS API limitations, we are only given annotations associated, and that has to do.NOTE: not yet used by Jakarta-RS provider, directly, as of Jackson 2.13
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description com.fasterxml.jackson.databind.introspect.AnnotationMap_annotationsprotected Annotation[]_rawAnnotationsstatic com.fasterxml.jackson.databind.PropertyNameENDPOINT_NAME
-
Constructor Summary
Constructors Modifier Constructor Description EndpointAsBeanProperty(com.fasterxml.jackson.databind.PropertyName name, com.fasterxml.jackson.databind.JavaType type, Annotation[] annotations)protectedEndpointAsBeanProperty(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.AnnotationMapannotations()<A extends Annotation>
AgetAnnotation(Class<A> acls)com.fasterxml.jackson.databind.BeanProperty.StdwithType(com.fasterxml.jackson.databind.JavaType type)
-
-
-
Field Detail
-
ENDPOINT_NAME
public static final com.fasterxml.jackson.databind.PropertyName ENDPOINT_NAME
-
_rawAnnotations
protected transient 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, 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:
withTypein classcom.fasterxml.jackson.databind.BeanProperty.Std
-
getAnnotation
public <A extends Annotation> A getAnnotation(Class<A> acls)
- Specified by:
getAnnotationin interfacecom.fasterxml.jackson.databind.BeanProperty- Overrides:
getAnnotationin classcom.fasterxml.jackson.databind.BeanProperty.Std
-
annotations
protected com.fasterxml.jackson.databind.introspect.AnnotationMap annotations()
-
-