Top Description Fields Constructors Methods
com.fasterxml.jackson.jakarta.rs.base.util

public Class EndpointAsBeanProperty

extends Std
Class Inheritance
Imports
java.lang.annotation.Annotation, com.fasterxml.jackson.databind.BeanProperty, .JavaType, .PropertyMetadata, .PropertyName, com.fasterxml.jackson.databind.introspect.AnnotationMap

BeanProperty implementation 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

Field Summary

Modifier and TypeField and Description
public AnnotationMap
protected transient Annotation[]
public static final PropertyName
private static final AnnotationMap
private static final long
Inherited from com.fasterxml.jackson.databind.BeanProperty.Std:
_member_metadata_name_type_wrapperName

Constructor Summary

AccessConstructor and Description
public
protected

Method Summary

Modifier and TypeMethod and Description
protected AnnotationMap
public <A extends Annotation> A
getAnnotation(Class<A> acls)

Overrides com.fasterxml.jackson.databind.BeanProperty.Std.getAnnotation.

Implements com.fasterxml.jackson.databind.BeanProperty.getAnnotation.

Method for finding annotation associated with this property; meaning annotation associated with one of entities used to access property.

public BeanProperty.Std
Inherited from com.fasterxml.jackson.databind.BeanProperty.Std:
depositSchemaPropertyfindAliasesfindFormatOverridesfindPropertyFormatfindPropertyInclusiongetContextAnnotationgetFullNamegetMembergetMetadatagetNamegetTypegetWrapperNameisRequiredisVirtual

Field Detail

_annotationsback to summary
public AnnotationMap _annotations
_rawAnnotationsback to summary
protected transient Annotation[] _rawAnnotations
ENDPOINT_NAMEback to summary
public static final PropertyName ENDPOINT_NAME
NO_ANNOTATIONSback to summary
private static final AnnotationMap NO_ANNOTATIONS
serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.fasterxml.jackson.databind.BeanProperty.Std.serialVersionUID.

Constructor Detail

EndpointAsBeanPropertyback to summary
public EndpointAsBeanProperty(PropertyName name, JavaType type, Annotation[] annotations)
EndpointAsBeanPropertyback to summary
protected EndpointAsBeanProperty(EndpointAsBeanProperty base, JavaType newType)

Method Detail

annotationsback to summary
protected AnnotationMap annotations()
getAnnotationback to summary
public <A extends Annotation> A getAnnotation(Class<A> acls)

Overrides com.fasterxml.jackson.databind.BeanProperty.Std.getAnnotation.

Implements com.fasterxml.jackson.databind.BeanProperty.getAnnotation.

Doc from com.fasterxml.jackson.databind.BeanProperty.getAnnotation.

Method 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 through AnnotationIntrospector.

Annotations
@Override
withTypeback to summary
public BeanProperty.Std withType(JavaType type)

Overrides com.fasterxml.jackson.databind.BeanProperty.Std.withType.

Annotations
@Override