Tabnine Logo
BasicBeanDescription.getBeanClass
Code IndexAdd Tabnine to your IDE (free)

How to use
getBeanClass
method
in
org.codehaus.jackson.map.introspect.BasicBeanDescription

Best Java code snippets using org.codehaus.jackson.map.introspect.BasicBeanDescription.getBeanClass (Showing top 20 results out of 315)

origin: org.codehaus.jackson/jackson-mapper-asl

  /**
   * Factory method for constructing an "empty" serializer; one that
   * outputs no properties (but handles JSON objects properly, including
   * type information)
   */
  public BeanSerializer createDummy() {
    return BeanSerializer.createDummy(_beanDesc.getBeanClass());
  }
}
origin: org.codehaus.jackson/jackson-mapper-asl

protected boolean isFactoryMethod(AnnotatedMethod am)
{
  /* First: return type must be compatible with the introspected class
   * (i.e. allowed to be sub-class, although usually is the same
   * class)
   */
  Class<?> rt = am.getRawType();
  if (!getBeanClass().isAssignableFrom(rt)) {
    return false;
  }
  /* Also: must be a recognized factory method, meaning:
   * (a) marked with @JsonCreator annotation, or
   * (a) "valueOf" (at this point, need not be public)
   */
  if (_annotationIntrospector.hasCreatorAnnotation(am)) {
    return true;
  }
  if ("valueOf".equals(am.getName())) {
    return true;
  }
  return false;
}
origin: camunda/camunda-bpm-platform

  /**
   * Factory method for constructing an "empty" serializer; one that
   * outputs no properties (but handles JSON objects properly, including
   * type information)
   */
  public BeanSerializer createDummy() {
    return BeanSerializer.createDummy(_beanDesc.getBeanClass());
  }
}
origin: org.codehaus.jackson/jackson-mapper-asl

if (beanDesc.getBeanClass() == Object.class) {
  throw new IllegalArgumentException("Can not create bean serializer for Object.class");
origin: camunda/camunda-bpm-platform

protected boolean isFactoryMethod(AnnotatedMethod am)
{
  /* First: return type must be compatible with the introspected class
   * (i.e. allowed to be sub-class, although usually is the same
   * class)
   */
  Class<?> rt = am.getRawType();
  if (!getBeanClass().isAssignableFrom(rt)) {
    return false;
  }
  /* Also: must be a recognized factory method, meaning:
   * (a) marked with @JsonCreator annotation, or
   * (a) "valueOf" (at this point, need not be public)
   */
  if (_annotationIntrospector.hasCreatorAnnotation(am)) {
    return true;
  }
  if ("valueOf".equals(am.getName())) {
    return true;
  }
  return false;
}
origin: ovea-deprecated/jetty-session-redis

  /**
   * Factory method for constructing an "empty" serializer; one that
   * outputs no properties (but handles JSON objects properly, including
   * type information)
   */
  public BeanSerializer createDummy() {
    return BeanSerializer.createDummy(_beanDesc.getBeanClass());
  }
}
origin: com.barchart.wrap/barchart-wrap-jackson

  /**
   * Factory method for constructing an "empty" serializer; one that
   * outputs no properties (but handles JSON objects properly, including
   * type information)
   */
  public BeanSerializer createDummy() {
    return BeanSerializer.createDummy(_beanDesc.getBeanClass());
  }
}
origin: org.codehaus.jackson/jackson-mapper-lgpl

  /**
   * Factory method for constructing an "empty" serializer; one that
   * outputs no properties (but handles JSON objects properly, including
   * type information)
   */
  public BeanSerializer createDummy() {
    return BeanSerializer.createDummy(_beanDesc.getBeanClass());
  }
}
origin: com.barchart.wrap/barchart-wrap-jackson

public Creator.StringBased stringCreator()
{
  if (_strConstructor == null &&  _strFactory == null) {
    return null;
  }
  return new Creator.StringBased(_beanDesc.getBeanClass(), _strConstructor, _strFactory);
}
origin: com.barchart.wrap/barchart-wrap-jackson

public Creator.NumberBased numberCreator()
{
  if (_intConstructor == null && _intFactory == null
    && _longConstructor == null && _longFactory == null) {
    return null;
  }
  return new Creator.NumberBased(_beanDesc.getBeanClass(), _intConstructor, _intFactory,
                  _longConstructor, _longFactory);
}
origin: camunda/camunda-bpm-platform

if (beanDesc.getBeanClass() == Object.class) {
  throw new IllegalArgumentException("Can not create bean serializer for Object.class");
origin: org.codehaus.jackson/jackson-mapper-lgpl

protected boolean isFactoryMethod(AnnotatedMethod am)
{
  /* First: return type must be compatible with the introspected class
   * (i.e. allowed to be sub-class, although usually is the same
   * class)
   */
  Class<?> rt = am.getRawType();
  if (!getBeanClass().isAssignableFrom(rt)) {
    return false;
  }
  /* Also: must be a recognized factory method, meaning:
   * (a) marked with @JsonCreator annotation, or
   * (a) "valueOf" (at this point, need not be public)
   */
  if (_annotationIntrospector.hasCreatorAnnotation(am)) {
    return true;
  }
  if ("valueOf".equals(am.getName())) {
    return true;
  }
  return false;
}
origin: ovea-deprecated/jetty-session-redis

protected boolean isFactoryMethod(AnnotatedMethod am)
{
  /* First: return type must be compatible with the introspected class
   * (i.e. allowed to be sub-class, although usually is the same
   * class)
   */
  Class<?> rt = am.getRawType();
  if (!getBeanClass().isAssignableFrom(rt)) {
    return false;
  }
  /* Also: must be a recognized factory method, meaning:
   * (a) marked with @JsonCreator annotation, or
   * (a) "valueOf" (at this point, need not be public)
   */
  if (_annotationIntrospector.hasCreatorAnnotation(am)) {
    return true;
  }
  if ("valueOf".equals(am.getName())) {
    return true;
  }
  return false;
}
origin: org.codehaus.jackson/com.springsource.org.codehaus.jackson.mapper

protected boolean isFactoryMethod(AnnotatedMethod am)
{
  /* First: return type must be compatible with the introspected class
   * (i.e. allowed to be sub-class, although usually is the same
   * class)
   */
  Class<?> rt = am.getReturnType();
  if (!getBeanClass().isAssignableFrom(rt)) {
    return false;
  }
  /* Also: must be a recognized factory method, meaning:
   * (a) marked with @JsonCreator annotation, or
   * (a) "valueOf" (at this point, need not be public)
   */
  if (_annotationIntrospector.hasCreatorAnnotation(am)) {
    return true;
  }
  if ("valueOf".equals(am.getName())) {
    return true;
  }
  return false;
}
origin: com.barchart.wrap/barchart-wrap-jackson

protected boolean isFactoryMethod(AnnotatedMethod am)
{
  /* First: return type must be compatible with the introspected class
   * (i.e. allowed to be sub-class, although usually is the same
   * class)
   */
  Class<?> rt = am.getRawType();
  if (!getBeanClass().isAssignableFrom(rt)) {
    return false;
  }
  /* Also: must be a recognized factory method, meaning:
   * (a) marked with @JsonCreator annotation, or
   * (a) "valueOf" (at this point, need not be public)
   */
  if (_annotationIntrospector.hasCreatorAnnotation(am)) {
    return true;
  }
  if ("valueOf".equals(am.getName())) {
    return true;
  }
  return false;
}
origin: com.netflix.schlep/schlep-core

Class<?>[] interfaces = beanDesc.getBeanClass().getInterfaces();
if (interfaces.length == 1) {
  synchronized (serializerClasses) {
        return new ClassTypeFieldSerializer(interfaces[0], (BeanSerializerBase) serializer);
      else
        return new NoPropertiesSerializer(interfaces[0], beanDesc.getBeanClass());
origin: org.codehaus.jackson/com.springsource.org.codehaus.jackson.mapper

  /**
   * Method that will construct a property object that represents
   * a logical property passed via Creator (constructor or static
   * factory method)
   */
  protected SettableBeanProperty constructCreatorProperty(DeserializationConfig config,
                              BasicBeanDescription beanDesc,
                              String name,
                              int index,
                              AnnotatedParameter param)
    throws JsonMappingException
  {
    JavaType type = resolveType(config, beanDesc, param.getParameterType(), param);
    // Is there an annotation that specifies exact deserializer?
    JsonDeserializer<Object> deser = findDeserializerFromAnnotation(config, param);
    // If yes, we are mostly done:
    if (deser != null) {
      SettableBeanProperty.CreatorProperty prop = new SettableBeanProperty.CreatorProperty(name, type, beanDesc.getBeanClass(), index);
      prop.setValueDeserializer(deser);
      return prop;
    }
    // Otherwise may have other type specifying annotations
    type = modifyTypeByAnnotation(config, param, type);
    return new SettableBeanProperty.CreatorProperty(name, type, beanDesc.getBeanClass(), index);
  }
}
origin: org.codehaus.jackson/com.springsource.org.codehaus.jackson.mapper

throws JsonMappingException
Class<?> mapClass = beanDesc.getBeanClass();
AnnotationIntrospector intr = config.getAnnotationIntrospector();
boolean fixAccess = config.isEnabled(DeserializationConfig.Feature.CAN_OVERRIDE_ACCESS_MODIFIERS);
origin: org.codehaus.jackson/com.springsource.org.codehaus.jackson.mapper

/**
 * Method that is to find all creators (constructors, factory methods)
 * for the bean type to deserialize.
 */
protected void addDeserializerCreators(DeserializationConfig config,
                    BasicBeanDescription beanDesc,
                    BeanDeserializer deser)
  throws JsonMappingException
{
  AnnotationIntrospector intr = config.getAnnotationIntrospector();
  boolean fixAccess = config.isEnabled(DeserializationConfig.Feature.CAN_OVERRIDE_ACCESS_MODIFIERS);
  // First, let's figure out constructor/factor- based instantation
  Constructor<?> defaultCtor = beanDesc.findDefaultConstructor();
  if (defaultCtor != null) {
    if (fixAccess) {
      ClassUtil.checkAndFixAccess(defaultCtor);
    }
    deser.setDefaultConstructor(defaultCtor);
  }
  CreatorContainer creators =  new CreatorContainer(beanDesc.getBeanClass(), fixAccess);
  _addDeserializerConstructors(config, beanDesc, deser, intr, creators);
  _addDeserializerFactoryMethods(config, beanDesc, deser, intr, creators);
  deser.setCreators(creators);
}
origin: org.codehaus.jackson/jackson-mapper-lgpl

if (beanDesc.getBeanClass() == Object.class) {
  throw new IllegalArgumentException("Can not create bean serializer for Object.class");
org.codehaus.jackson.map.introspectBasicBeanDescriptiongetBeanClass

Popular methods of BasicBeanDescription

  • getClassInfo
  • <init>
  • _findPropertyFields
  • findAnySetter
    Method used to locate the method of introspected class that implements org.codehaus.jackson.annotate
  • findDefaultConstructor
    Method that will locate the no-arg constructor for this class, if it has one, and that constructor h
  • findFactoryMethod
    Method that can be called to find if introspected class declares a static "valueOf" factory method t
  • findJsonValueMethod
    Method for locating the getter method that is annotated with org.codehaus.jackson.annotate.JsonValue
  • findMethod
  • findProperties
  • findSerializationInclusion
    Method for determining whether null properties should be written out for a Bean of introspected type
  • findSingleArgConstructor
    Method that can be called to locate a single-arg constructor that takes specified exact type (will n
  • getConstructors
  • findSingleArgConstructor,
  • getConstructors,
  • getFactoryMethods,
  • getType,
  • hasKnownClassAnnotations,
  • instantiateBean,
  • isFactoryMethod,
  • bindingsForBeanType,
  • findAnyGetter

Popular in Java

  • Making http post requests using okhttp
  • compareTo (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
  • getSystemService (Context)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Github Copilot alternatives
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