Class EndpointAsBeanProperty
- java.lang.Object
-
- com.fasterxml.jackson.databind.BeanProperty.Std
-
- com.fasterxml.jackson.jakarta.rs.base.util.EndpointAsBeanProperty
-
- All Implemented Interfaces:
BeanProperty,Named,Serializable
public class EndpointAsBeanProperty extends BeanProperty.Std
BeanPropertyimplementation 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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.fasterxml.jackson.databind.BeanProperty
BeanProperty.Bogus, BeanProperty.Std
-
-
Field Summary
Fields Modifier and Type Field Description AnnotationMap_annotationsprotected Annotation[]_rawAnnotationsstatic PropertyNameENDPOINT_NAME-
Fields inherited from class com.fasterxml.jackson.databind.BeanProperty.Std
_member, _metadata, _name, _type, _wrapperName
-
Fields inherited from interface com.fasterxml.jackson.databind.BeanProperty
EMPTY_FORMAT, EMPTY_INCLUDE
-
-
Constructor Summary
Constructors Modifier Constructor Description EndpointAsBeanProperty(PropertyName name, JavaType type, Annotation[] annotations)protectedEndpointAsBeanProperty(EndpointAsBeanProperty base, JavaType newType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AnnotationMapannotations()<A extends Annotation>
AgetAnnotation(Class<A> acls)Method for finding annotation associated with this property; meaning annotation associated with one of entities used to access property.BeanProperty.StdwithType(JavaType type)-
Methods inherited from class com.fasterxml.jackson.databind.BeanProperty.Std
depositSchemaProperty, findAliases, findFormatOverrides, findPropertyFormat, findPropertyInclusion, getContextAnnotation, getFullName, getMember, getMetadata, getName, getType, getWrapperName, isRequired, isVirtual
-
-
-
-
Field Detail
-
ENDPOINT_NAME
public static final PropertyName ENDPOINT_NAME
-
_rawAnnotations
protected transient Annotation[] _rawAnnotations
-
_annotations
public AnnotationMap _annotations
-
-
Constructor Detail
-
EndpointAsBeanProperty
public EndpointAsBeanProperty(PropertyName name, JavaType type, Annotation[] annotations)
-
EndpointAsBeanProperty
protected EndpointAsBeanProperty(EndpointAsBeanProperty base, JavaType newType)
-
-
Method Detail
-
withType
public BeanProperty.Std withType(JavaType type)
- Overrides:
withTypein classBeanProperty.Std
-
getAnnotation
public <A extends Annotation> A getAnnotation(Class<A> acls)
Description copied from interface:BeanPropertyMethod for finding annotation associated with this property; meaning annotation associated with one of entities used to access property.Note that this method should only be called for custom annotations; access to standard Jackson annotations (or ones supported by alternate
AnnotationIntrospectors) should be accessed throughAnnotationIntrospector.- Specified by:
getAnnotationin interfaceBeanProperty- Overrides:
getAnnotationin classBeanProperty.Std
-
annotations
protected AnnotationMap annotations()
-
-