Package org.codehaus.jackson.map.util
Class BeanUtil
- java.lang.Object
-
- org.codehaus.jackson.map.util.BeanUtil
-
public class BeanUtil extends java.lang.ObjectHelper class that contains functionality needed by both serialization and deserialization side.- Since:
- 1.9
-
-
Constructor Summary
Constructors Constructor Description BeanUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static booleanisCglibGetCallbacks(AnnotatedMethod am)This method was added to address [JACKSON-53]: need to weed out CGLib-injected "getCallbacks".protected static booleanisGroovyMetaClassGetter(AnnotatedMethod am)Another helper method to deal with rest of [JACKSON-103]protected static booleanisGroovyMetaClassSetter(AnnotatedMethod am)Similar toisCglibGetCallbacks(org.codehaus.jackson.map.introspect.AnnotatedMethod), need to suppress a cyclic reference to resolve [JACKSON-103]protected static java.lang.StringmanglePropertyName(java.lang.String basename)Method called to figure out name of the property, given corresponding suggested name based on a method or field name.static java.lang.StringokNameForGetter(AnnotatedMethod am)static java.lang.StringokNameForIsGetter(AnnotatedMethod am, java.lang.String name)static java.lang.StringokNameForRegularGetter(AnnotatedMethod am, java.lang.String name)static java.lang.StringokNameForSetter(AnnotatedMethod am)
-
-
-
Method Detail
-
okNameForGetter
public static java.lang.String okNameForGetter(AnnotatedMethod am)
-
okNameForRegularGetter
public static java.lang.String okNameForRegularGetter(AnnotatedMethod am, java.lang.String name)
-
okNameForIsGetter
public static java.lang.String okNameForIsGetter(AnnotatedMethod am, java.lang.String name)
-
okNameForSetter
public static java.lang.String okNameForSetter(AnnotatedMethod am)
-
isCglibGetCallbacks
protected static boolean isCglibGetCallbacks(AnnotatedMethod am)
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
-
isGroovyMetaClassSetter
protected static boolean isGroovyMetaClassSetter(AnnotatedMethod am)
Similar toisCglibGetCallbacks(org.codehaus.jackson.map.introspect.AnnotatedMethod), need to suppress a cyclic reference to resolve [JACKSON-103]
-
isGroovyMetaClassGetter
protected static boolean isGroovyMetaClassGetter(AnnotatedMethod am)
Another helper method to deal with rest of [JACKSON-103]
-
manglePropertyName
protected static java.lang.String manglePropertyName(java.lang.String basename)
Method called to figure out name of the property, given corresponding suggested name based on a method or field name.- Parameters:
basename- Name of accessor/mutator method, not including prefix ("get"/"is"/"set")
-
-