Tabnine Logo
BeanDeserializerFactory.modifyTypeByAnnotation
Code IndexAdd Tabnine to your IDE (free)

How to use
modifyTypeByAnnotation
method
in
com.fasterxml.jackson.databind.deser.BeanDeserializerFactory

Best Java code snippets using com.fasterxml.jackson.databind.deser.BeanDeserializerFactory.modifyTypeByAnnotation (Showing top 12 results out of 315)

origin: com.ning.billing/killbill-osgi-bundles-analytics

/**
 * Method that will construct a regular bean property setter using
 * the given setter method.
 */
protected SettableBeanProperty constructSetterlessProperty(DeserializationContext ctxt,
    BeanDescription beanDesc, BeanPropertyDefinition propDef)
  throws JsonMappingException
{
  final AnnotatedMethod getter = propDef.getGetter();
  // need to ensure it is callable now:
  if (ctxt.canOverrideAccessModifiers()) {
    getter.fixAccess();
  }
  /* 26-Jan-2012, tatu: Alas, this complication is still needed to handle
   *   (or at least work around) local type declarations...
   */
  JavaType type = getter.getType(beanDesc.bindingsForBeanType());
  /* First: does the Method specify the deserializer to use?
   * If so, let's use it.
   */
  JsonDeserializer<Object> propDeser = findDeserializerFromAnnotation(ctxt, getter);
  type = modifyTypeByAnnotation(ctxt, getter, type);
  TypeDeserializer typeDeser = type.getTypeHandler();
  SettableBeanProperty prop = new SetterlessProperty(propDef, type, typeDeser,
      beanDesc.getClassAnnotations(), getter);
  if (propDeser != null) {
    prop = prop.withValueDeserializer(propDeser);
  }
  return prop;
}
origin: com.fasterxml.jackson.core/com.springsource.com.fasterxml.jackson.core.jackson-databind

/**
 * Method that will construct a regular bean property setter using
 * the given setter method.
 */
protected SettableBeanProperty constructSetterlessProperty(DeserializationContext ctxt,
    BeanDescription beanDesc, BeanPropertyDefinition propDef)
  throws JsonMappingException
{
  final AnnotatedMethod getter = propDef.getGetter();
  // need to ensure it is callable now:
  if (ctxt.canOverrideAccessModifiers()) {
    getter.fixAccess();
  }
  /* 26-Jan-2012, tatu: Alas, this complication is still needed to handle
   *   (or at least work around) local type declarations...
   */
  JavaType type = getter.getType(beanDesc.bindingsForBeanType());
  /* First: does the Method specify the deserializer to use?
   * If so, let's use it.
   */
  JsonDeserializer<Object> propDeser = findDeserializerFromAnnotation(ctxt, getter);
  type = modifyTypeByAnnotation(ctxt, getter, type);
  TypeDeserializer typeDeser = type.getTypeHandler();
  SettableBeanProperty prop = new SetterlessProperty(propDef, type, typeDeser,
      beanDesc.getClassAnnotations(), getter);
  if (propDeser != null) {
    prop = prop.withValueDeserializer(propDeser);
  }
  return prop;
}
origin: com.eclipsesource.jaxrs/jersey-all

type = modifyTypeByAnnotation(ctxt, getter, type);
origin: hstaudacher/osgi-jax-rs-connector

type = modifyTypeByAnnotation(ctxt, getter, type);
origin: com.ning.billing/killbill-osgi-bundles-analytics

type = modifyTypeByAnnotation(ctxt, setter, type);
return new SettableAnyProperty(property, setter, type, null);
origin: com.fasterxml.jackson.core/com.springsource.com.fasterxml.jackson.core.jackson-databind

type = modifyTypeByAnnotation(ctxt, setter, type);
return new SettableAnyProperty(property, setter, type, null);
origin: com.eclipsesource.jaxrs/jersey-all

type = modifyTypeByAnnotation(ctxt, setter, type);
if (deser == null) {
  deser = type.getValueHandler();
origin: hstaudacher/osgi-jax-rs-connector

type = modifyTypeByAnnotation(ctxt, setter, type);
if (deser == null) {
  deser = type.getValueHandler();
origin: com.fasterxml.jackson.core/com.springsource.com.fasterxml.jackson.core.jackson-databind

type = modifyTypeByAnnotation(ctxt, mutator, type);
TypeDeserializer typeDeser = type.getTypeHandler();
SettableBeanProperty prop;
origin: com.ning.billing/killbill-osgi-bundles-analytics

type = modifyTypeByAnnotation(ctxt, mutator, type);
TypeDeserializer typeDeser = type.getTypeHandler();
SettableBeanProperty prop;
origin: com.eclipsesource.jaxrs/jersey-all

type = modifyTypeByAnnotation(ctxt, mutator, type);
TypeDeserializer typeDeser = type.getTypeHandler();
SettableBeanProperty prop;
origin: hstaudacher/osgi-jax-rs-connector

type = modifyTypeByAnnotation(ctxt, mutator, type);
TypeDeserializer typeDeser = type.getTypeHandler();
SettableBeanProperty prop;
com.fasterxml.jackson.databind.deserBeanDeserializerFactorymodifyTypeByAnnotation

Popular methods of BeanDeserializerFactory

  • <init>
  • addBeanProps
    Method called to figure out settable properties for the bean deserializer to use. Note: designed to
  • addInjectables
    Method called locate all members used for value injection (if any), constructor com.fasterxml.jackso
  • addObjectIdReader
  • buildBeanDeserializer
    Method that is to actually build a bean deserializer instance. All basic sanity checks have been don
  • _findCustomBeanDeserializer
  • buildBuilderBasedDeserializer
    Method for constructing a bean deserializer that uses specified intermediate Builder for binding dat
  • buildThrowableDeserializer
  • constructAnySetter
    Method called to construct fallback SettableAnyPropertyfor handling unknown bean properties, given a
  • constructBeanDeserializerBuilder
    Overridable method that constructs a BeanDeserializerBuilderwhich is used to accumulate information
  • constructSettableProperty
    Method that will construct a regular bean property setter using the given setter method.
  • constructSetterlessProperty
    Method that will construct a regular bean property setter using the given setter method.
  • constructSettableProperty,
  • constructSetterlessProperty,
  • filterBeanProps,
  • findDeserializerFromAnnotation,
  • findStdDeserializer,
  • findValueInstantiator,
  • isIgnorableType,
  • isPotentialBeanType,
  • materializeAbstractType,
  • addReferenceProperties

Popular in Java

  • Making http requests using okhttp
  • getContentResolver (Context)
  • startActivity (Activity)
  • getSharedPreferences (Context)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • JPanel (javax.swing)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now