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

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

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

origin: org.codehaus.jackson/com.springsource.org.codehaus.jackson.mapper

public String okNameForGetter(AnnotatedMethod am, String name)
{
  if (name.startsWith("get")) {
    /* 16-Feb-2009, tatu: To handle [JACKSON-53], need to block
     *   CGLib-provided method "getCallbacks". Not sure of exact
     *   safe critieria to get decent coverage without false matches;
     *   but for now let's assume there's no reason to use any 
     *   such getter from CGLib.
     *   But let's try this approach...
     */
    if ("getCallbacks".equals(name)) {
      if (isCglibGetCallbacks(am)) {
        return null;
      }
    } else if ("getMetaClass".equals(name)) {
      /* 30-Apr-2009, tatu: [JACKSON-103], need to suppress
       *    serialization of a cyclic (and useless) reference
       */
      if (isGroovyMetaClassGetter(am)) {
        return null;
      }
    }
    return mangleGetterName(am, name.substring(3));
  }
  return null;
}
origin: com.barchart.wrap/barchart-wrap-jackson

public String okNameForGetter(AnnotatedMethod am, String name)
{
  if (name.startsWith("get")) {
    /* 16-Feb-2009, tatu: To handle [JACKSON-53], need to block
     *   CGLib-provided method "getCallbacks". Not sure of exact
     *   safe criteria to get decent coverage without false matches;
     *   but for now let's assume there's no reason to use any 
     *   such getter from CGLib.
     *   But let's try this approach...
     */
    if ("getCallbacks".equals(name)) {
      if (isCglibGetCallbacks(am)) {
        return null;
      }
    } else if ("getMetaClass".equals(name)) {
      /* 30-Apr-2009, tatu: [JACKSON-103], need to suppress
       *    serialization of a cyclic (and useless) reference
       */
      if (isGroovyMetaClassGetter(am)) {
        return null;
      }
    }
    return mangleGetterName(am, name.substring(3));
  }
  return null;
}
org.codehaus.jackson.map.introspectBasicBeanDescriptionisCglibGetCallbacks

Javadoc

This method was added to address [JACKSON-53]: need to weed out CGLib-injected "getCallbacks". At this point caller has detected a potential getter method with name "getCallbacks" and we need to determine if it is indeed injectect by Cglib. We do this by verifying that the result type is "net.sf.cglib.proxy.Callback[]"

Also, see [JACKSON-177]; Hibernate may repackage cglib it uses, so we better catch that too

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,
  • instantiateBean,
  • isFactoryMethod,
  • bindingsForBeanType,
  • findAnyGetter

Popular in Java

  • Reading from database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • getApplicationContext (Context)
  • setContentView (Activity)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • 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
  • Reference (javax.naming)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Best plugins for Eclipse
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