Package org.codehaus.jackson.mrbean
Class BeanBuilder
java.lang.Object
org.codehaus.jackson.mrbean.BeanBuilder
Heavy lifter of mr Bean package: class that keeps track of logical POJO properties,
and figures out how to create an implementation class.
- Since:
- 1.6
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Class
<?> Abstract class or interface that the bean is created to extend or implement.protected final TypeFactory
protected LinkedHashMap
<String, Method> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Method that generates byte code for class that implements abstract types requested so far.implement
(boolean failOnUnrecognized)
-
Field Details
-
_beanProperties
-
_unsupportedMethods
-
_implementedType
Abstract class or interface that the bean is created to extend or implement. -
_typeFactory
-
-
Constructor Details
-
BeanBuilder
-
-
Method Details
-
implement
- Parameters:
failOnUnrecognized
- If true, and an unrecognized (non-getter, non-setter) method is encountered, will throwIllegalArgumentException
; if false, will implement bogus method that will throwUnsupportedOperationException
if called.
-
build
Method that generates byte code for class that implements abstract types requested so far.- Parameters:
className
- Fully-qualified name of the class to generate- Returns:
- Byte code Class instance built by this builder
-