public class EndpointAsBeanProperty extends 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.6.
BeanProperty.Std| Modifier and Type | Field and Description |
|---|---|
AnnotationMap |
_annotations |
protected Annotation[] |
_rawAnnotations |
static PropertyName |
ENDPOINT_NAME |
_contextAnnotations, _member, _metadata, _name, _type, _wrapperNameEMPTY_FORMAT, EMPTY_INCLUDE| Modifier | Constructor and Description |
|---|---|
protected |
EndpointAsBeanProperty(EndpointAsBeanProperty base,
JavaType newType) |
|
EndpointAsBeanProperty(PropertyName name,
JavaType type,
Annotation[] annotations) |
| Modifier and Type | Method and Description |
|---|---|
protected AnnotationMap |
annotations() |
<A extends Annotation> |
getAnnotation(Class<A> acls)
Method for finding annotation associated with this property;
meaning annotation associated with one of entities used to
access property.
|
BeanProperty.Std |
withType(JavaType type) |
depositSchemaProperty, findFormatOverrides, findPropertyFormat, findPropertyInclusion, getContextAnnotation, getFullName, getMember, getMetadata, getName, getType, getWrapperName, isRequired, isVirtualpublic static final PropertyName ENDPOINT_NAME
protected transient Annotation[] _rawAnnotations
public AnnotationMap _annotations
public EndpointAsBeanProperty(PropertyName name, JavaType type, Annotation[] annotations)
protected EndpointAsBeanProperty(EndpointAsBeanProperty base, JavaType newType)
public BeanProperty.Std withType(JavaType type)
withType in class BeanProperty.Stdpublic <A extends Annotation> A getAnnotation(Class<A> acls)
BeanProperty
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.
getAnnotation in interface BeanPropertygetAnnotation in class BeanProperty.Stdprotected AnnotationMap annotations()
Copyright © 2017 JBoss by Red Hat. All rights reserved.