public static class BeanCopier.Generator extends AbstractClassGenerator
AbstractClassGenerator.ClassLoaderData, AbstractClassGenerator.Source
Constructor and Description |
---|
Generator() |
Modifier and Type | Method and Description |
---|---|
BeanCopier |
create() |
protected Object |
firstInstance(Class type) |
void |
generateClass(ClassVisitor v) |
protected ClassLoader |
getDefaultClassLoader() |
protected ProtectionDomain |
getProtectionDomain()
Returns the protection domain to use when defining the class.
|
protected Object |
nextInstance(Object instance) |
void |
setSource(Class source) |
void |
setTarget(Class target) |
void |
setUseConverter(boolean useConverter) |
create, generate, getAttemptLoad, getClassLoader, getClassName, getCurrent, getNamingPolicy, getStrategy, getUseCache, setAttemptLoad, setClassLoader, setContextClass, setNamePrefix, setNamingPolicy, setStrategy, setUseCache, unwrapCachedValue, wrapCachedClass
public void setSource(Class source)
public void setTarget(Class target)
public void setUseConverter(boolean useConverter)
protected ClassLoader getDefaultClassLoader()
getDefaultClassLoader
in class AbstractClassGenerator
protected ProtectionDomain getProtectionDomain()
AbstractClassGenerator
Default implementation returns null
for using a default protection domain. Sub-classes may
override to use a more specific protection domain.
getProtectionDomain
in class AbstractClassGenerator
null
for using a default)public BeanCopier create()
public void generateClass(ClassVisitor v)
protected Object firstInstance(Class type)
firstInstance
in class AbstractClassGenerator
protected Object nextInstance(Object instance)
nextInstance
in class AbstractClassGenerator