congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
BasicBeanDescription.instantiateBean
Code IndexAdd Tabnine to your IDE (free)

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

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

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

protected Object getDefaultBean()
{
  if (_defaultBean == null) {
    /* If we can fix access rights, we should; otherwise non-public
     * classes or default constructor will prevent instantiation
     */
    _defaultBean = _beanDesc.instantiateBean(_config.isEnabled(SerializationConfig.Feature.CAN_OVERRIDE_ACCESS_MODIFIERS));
    if (_defaultBean == null) {
      Class<?> cls = _beanDesc.getClassInfo().getAnnotated();
      throw new IllegalArgumentException("Class "+cls.getName()+" has no default constructor; can not instantiate default bean value to support 'properties=JsonSerialize.Inclusion.NON_DEFAULT' annotation");
    }
  }
  return _defaultBean;
}
origin: camunda/camunda-bpm-platform

protected Object getDefaultBean()
{
  if (_defaultBean == null) {
    /* If we can fix access rights, we should; otherwise non-public
     * classes or default constructor will prevent instantiation
     */
    _defaultBean = _beanDesc.instantiateBean(_config.isEnabled(SerializationConfig.Feature.CAN_OVERRIDE_ACCESS_MODIFIERS));
    if (_defaultBean == null) {
      Class<?> cls = _beanDesc.getClassInfo().getAnnotated();
      throw new IllegalArgumentException("Class "+cls.getName()+" has no default constructor; can not instantiate default bean value to support 'properties=JsonSerialize.Inclusion.NON_DEFAULT' annotation");
    }
  }
  return _defaultBean;
}
origin: com.barchart.wrap/barchart-wrap-jackson

protected Object getDefaultBean()
{
  if (_defaultBean == null) {
    /* If we can fix access rights, we should; otherwise non-public
     * classes or default constructor will prevent instantiation
     */
    _defaultBean = _beanDesc.instantiateBean(_config.isEnabled(SerializationConfig.Feature.CAN_OVERRIDE_ACCESS_MODIFIERS));
    if (_defaultBean == null) {
      Class<?> cls = _beanDesc.getClassInfo().getAnnotated();
      throw new IllegalArgumentException("Class "+cls.getName()+" has no default constructor; can not instantiate default bean value to support 'properties=JsonSerialize.Inclusion.NON_DEFAULT' annotation");
    }
  }
  return _defaultBean;
}
origin: org.codehaus.jackson/jackson-mapper-lgpl

protected Object getDefaultBean()
{
  if (_defaultBean == null) {
    /* If we can fix access rights, we should; otherwise non-public
     * classes or default constructor will prevent instantiation
     */
    _defaultBean = _beanDesc.instantiateBean(_config.isEnabled(SerializationConfig.Feature.CAN_OVERRIDE_ACCESS_MODIFIERS));
    if (_defaultBean == null) {
      Class<?> cls = _beanDesc.getClassInfo().getAnnotated();
      throw new IllegalArgumentException("Class "+cls.getName()+" has no default constructor; can not instantiate default bean value to support 'properties=JsonSerialize.Inclusion.NON_DEFAULT' annotation");
    }
  }
  return _defaultBean;
}
origin: org.codehaus.jackson/com.springsource.org.codehaus.jackson.mapper

protected Object getDefaultBean()
{
  if (_defaultBean == null) {
    /* If we can fix access rights, we should; otherwise non-public
     * classes or default constructor will prevent instantiation
     */
    _defaultBean = _beanDesc.instantiateBean(_config.isEnabled(SerializationConfig.Feature.CAN_OVERRIDE_ACCESS_MODIFIERS));
    if (_defaultBean == null) {
      Class<?> cls = _beanDesc.getClassInfo().getAnnotated();
      throw new IllegalArgumentException("Class "+cls.getName()+" has no default constructor; can not instantiate default bean value to support 'properties=JsonSerialize.Inclusion.NON_DEFAULT' annotation");
    }
  }
  return _defaultBean;
}
origin: ovea-deprecated/jetty-session-redis

protected Object getDefaultBean()
{
  if (_defaultBean == null) {
    /* If we can fix access rights, we should; otherwise non-public
     * classes or default constructor will prevent instantiation
     */
    _defaultBean = _beanDesc.instantiateBean(_config.isEnabled(SerializationConfig.Feature.CAN_OVERRIDE_ACCESS_MODIFIERS));
    if (_defaultBean == null) {
      Class<?> cls = _beanDesc.getClassInfo().getAnnotated();
      throw new IllegalArgumentException("Class "+cls.getName()+" has no default constructor; can not instantiate default bean value to support 'properties=JsonSerialize.Inclusion.NON_DEFAULT' annotation");
    }
  }
  return _defaultBean;
}
org.codehaus.jackson.map.introspectBasicBeanDescriptioninstantiateBean

Javadoc

Method called to create a "default instance" of the bean, currently only needed for obtaining default field values which may be used for suppressing serialization of fields that have "not changed".

Popular methods of BasicBeanDescription

  • getBeanClass
  • 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
  • findSerializationInclusion,
  • findSingleArgConstructor,
  • getConstructors,
  • getFactoryMethods,
  • getType,
  • hasKnownClassAnnotations,
  • isFactoryMethod,
  • bindingsForBeanType,
  • findAnyGetter

Popular in Java

  • Making http requests using okhttp
  • onCreateOptionsMenu (Activity)
  • setScale (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Runner (org.openjdk.jmh.runner)
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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