net.sf.cglib.beans
Class BeanMap.Generator
- BeanMap
- ClassGenerator
public static class BeanMap.Generator
BeanMap | create() - Create a new instance of the
BeanMap .
|
void | generateClass(ClassVisitor v)
|
void | setBean(Object bean) - Set the bean that the generated map should reflect.
|
void | setBeanClass(Class beanClass) - Set the class of the bean that the generated map should support.
|
void | setRequire(int require) - Limit the properties reflected by the generated map.
|
getAttemptLoad , getClassLoader , getCurrent , getNamingPolicy , getStrategy , getUseCache , setAttemptLoad , setClassLoader , setNamingPolicy , setStrategy , setUseCache |
Generator
public Generator()
create
public BeanMap create()
Create a new instance of the BeanMap
. An existing
generated class will be reused if possible.
setBean
public void setBean(Object bean)
setBeanClass
public void setBeanClass(Class beanClass)
Set the class of the bean that the generated map should support.
You must call either this method or
setBeanClass(Class)
before
create()
.
beanClass
- the class of the bean
setRequire
public void setRequire(int require)
Limit the properties reflected by the generated map.
require
- any combination of BeanMap.Generator
and
BeanMap.Generator
; default is zero (any property allowed)
Copyright (c) 2001 - Apache Software Foundation