net.sf.cglib.beans

Class BeanMap.Generator

Enclosing Class:
BeanMap
Implemented Interfaces:
ClassGenerator

public static class BeanMap.Generator
extends AbstractClassGenerator

Constructor Summary

Generator()

Method Summary

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.

Methods inherited from class net.sf.cglib.core.AbstractClassGenerator

getAttemptLoad, getClassLoader, getCurrent, getNamingPolicy, getStrategy, getUseCache, setAttemptLoad, setClassLoader, setNamingPolicy, setStrategy, setUseCache

Constructor Details

Generator

public Generator()

Method Details

create

public BeanMap create()
Create a new instance of the BeanMap. An existing generated class will be reused if possible.

generateClass

public void generateClass(ClassVisitor v)
            throws Exception
Specified by:
generateClass in interface ClassGenerator

setBean

public void setBean(Object bean)
Parameters:
bean - the initial bean

setBeanClass

public void setBeanClass(Class beanClass)
Parameters:
beanClass - the class of the bean

setRequire

public void setRequire(int require)
Limit the properties reflected by the generated map.
Parameters:
require - any combination of BeanMap.Generator and BeanMap.Generator; default is zero (any property allowed)

Copyright (c) 2001 - Apache Software Foundation