Class EndpointAsBeanProperty

java.lang.Object
tools.jackson.databind.BeanProperty.Std
tools.jackson.jakarta.rs.base.util.EndpointAsBeanProperty
All Implemented Interfaces:
Serializable, tools.jackson.core.util.Named, tools.jackson.databind.BeanProperty, tools.jackson.databind.util.FullyNamed

public class EndpointAsBeanProperty extends tools.jackson.databind.BeanProperty.Std
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

See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface tools.jackson.databind.BeanProperty

    tools.jackson.databind.BeanProperty.Bogus, tools.jackson.databind.BeanProperty.Std

    Nested classes/interfaces inherited from interface tools.jackson.core.util.Named

    tools.jackson.core.util.Named.StringAsNamed
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    tools.jackson.databind.introspect.AnnotationMap
     
    protected Annotation[]
     
    static final tools.jackson.databind.PropertyName
     

    Fields inherited from class tools.jackson.databind.BeanProperty.Std

    _member, _metadata, _name, _type, _wrapperName

    Fields inherited from interface tools.jackson.databind.BeanProperty

    EMPTY_FORMAT, EMPTY_INCLUDE
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
    EndpointAsBeanProperty(tools.jackson.databind.PropertyName name, tools.jackson.databind.JavaType type, Annotation[] annotations)
     
    protected
    EndpointAsBeanProperty(EndpointAsBeanProperty base, tools.jackson.databind.JavaType newType)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected tools.jackson.databind.introspect.AnnotationMap
     
    <A extends Annotation>
    A
     
    tools.jackson.databind.BeanProperty.Std
    withType(tools.jackson.databind.JavaType type)
     

    Methods inherited from class tools.jackson.databind.BeanProperty.Std

    depositSchemaProperty, findAliases, findFormatOverrides, findPropertyFormat, findPropertyInclusion, getContextAnnotation, getFullName, getMember, getMetadata, getName, getType, getWrapperName, isRequired, isVirtual

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface tools.jackson.databind.util.FullyNamed

    hasName
  • Field Details

    • ENDPOINT_NAME

      public static final tools.jackson.databind.PropertyName ENDPOINT_NAME
    • _rawAnnotations

      protected transient Annotation[] _rawAnnotations
    • _annotations

      public tools.jackson.databind.introspect.AnnotationMap _annotations
  • Constructor Details

    • EndpointAsBeanProperty

      public EndpointAsBeanProperty(tools.jackson.databind.PropertyName name, tools.jackson.databind.JavaType type, Annotation[] annotations)
    • EndpointAsBeanProperty

      protected EndpointAsBeanProperty(EndpointAsBeanProperty base, tools.jackson.databind.JavaType newType)
  • Method Details

    • withType

      public tools.jackson.databind.BeanProperty.Std withType(tools.jackson.databind.JavaType type)
      Overrides:
      withType in class tools.jackson.databind.BeanProperty.Std
    • getAnnotation

      public <A extends Annotation> A getAnnotation(Class<A> acls)
      Specified by:
      getAnnotation in interface tools.jackson.databind.BeanProperty
      Overrides:
      getAnnotation in class tools.jackson.databind.BeanProperty.Std
    • annotations

      protected tools.jackson.databind.introspect.AnnotationMap annotations()