Top Inners Fields Constructors Methods
org.springframework.cglib.beans

public abstract Class BeanCopier

extends Object
Class Inheritance
Annotations
@SuppressWarnings:rawtypes, unchecked
Imports
java.beans.PropertyDescriptor, java.security.ProtectionDomain, java.util.HashMap, .Map, org.springframework.asm.ClassVisitor, .Type, org.springframework.cglib.core.AbstractClassGenerator, .ClassEmitter, .CodeEmitter, .Constants, .Converter, .EmitUtils, .KeyFactory, .Local, .MethodInfo, .ReflectUtils, .Signature, .TypeUtils

Author
Chris Nokleberg

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static interface
public static class

Field Summary

Modifier and TypeField and Description
private static final Type
private static final Signature
private static final Type
private static final Signature
private static final BeanCopier.BeanCopierKey

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract void
copy(Object from, Object to, Converter converter)

public static BeanCopier
create(Class<T> source, Class<T> target, boolean useConverter)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BEAN_COPIERback to summary
private static final Type BEAN_COPIER
CONVERTback to summary
private static final Signature CONVERT
CONVERTERback to summary
private static final Type CONVERTER
COPYback to summary
private static final Signature COPY
KEY_FACTORYback to summary
private static final BeanCopier.BeanCopierKey KEY_FACTORY

Constructor Detail

BeanCopierback to summary
public BeanCopier()

Method Detail

copyback to summary
public abstract void copy(Object from, Object to, Converter converter)
createback to summary
public static BeanCopier create(Class<T> source, Class<T> target, boolean useConverter)
org.springframework.cglib.beans back to summary

pack-priv Interface BeanCopier.BeanCopierKey


Method Summary

Modifier and TypeMethod and Description
public Object
newInstance(String source, String target, boolean useConverter)

Method Detail

newInstanceback to summary
public Object newInstance(String source, String target, boolean useConverter)
org.springframework.cglib.beans back to summary

public Class BeanCopier.Generator

extends AbstractClassGenerator
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final AbstractClassGenerator.Source
private Class<T>
private Class<T>
private boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static boolean
public BeanCopier
protected Object
public void
protected ClassLoader
protected ProtectionDomain
getProtectionDomain()

Overrides org.springframework.cglib.core.AbstractClassGenerator.getProtectionDomain.

Returns the protection domain to use when defining the class.

protected Object
public void
setSource(Class<T> source)

public void
setTarget(Class<T> target)

public void
setUseConverter(boolean useConverter)

Inherited from org.springframework.cglib.core.AbstractClassGenerator:
creategenerategetAttemptLoadgetClassLoadergetClassNamegetCurrentgetNamingPolicygetStrategygetUseCachesetAttemptLoadsetClassLoadersetContextClasssetNamePrefixsetNamingPolicysetStrategysetUseCacheunwrapCachedValuewrapCachedClass

Field Detail

SOURCEback to summary
private static final AbstractClassGenerator.Source SOURCE
sourceback to summary
private Class<T> source

Hides org.springframework.cglib.core.AbstractClassGenerator.source.

targetback to summary
private Class<T> target
useConverterback to summary
private boolean useConverter

Constructor Detail

Generatorback to summary
public Generator()

Method Detail

compatibleback to summary
private static boolean compatible(PropertyDescriptor getter, PropertyDescriptor setter)
createback to summary
public BeanCopier create()
firstInstanceback to summary
protected Object firstInstance(Class<T> type)

Implements abstract org.springframework.cglib.core.AbstractClassGenerator.firstInstance.

Annotations
@Override
generateClassback to summary
public void generateClass(ClassVisitor v)

Implements org.springframework.cglib.core.ClassGenerator.generateClass.

Annotations
@Override
getDefaultClassLoaderback to summary
protected ClassLoader getDefaultClassLoader()

Implements abstract org.springframework.cglib.core.AbstractClassGenerator.getDefaultClassLoader.

Annotations
@Override
getProtectionDomainback to summary
protected ProtectionDomain getProtectionDomain()

Overrides org.springframework.cglib.core.AbstractClassGenerator.getProtectionDomain.

Doc from org.springframework.cglib.core.AbstractClassGenerator.getProtectionDomain.

Returns the protection domain to use when defining the class.

Default implementation returns null for using a default protection domain. Sub-classes may override to use a more specific protection domain.

Returns:ProtectionDomain

the protection domain (null for using a default)

Annotations
@Override
nextInstanceback to summary
protected Object nextInstance(Object instance)

Implements abstract org.springframework.cglib.core.AbstractClassGenerator.nextInstance.

Annotations
@Override
setSourceback to summary
public void setSource(Class<T> source)
setTargetback to summary
public void setTarget(Class<T> target)
setUseConverterback to summary
public void setUseConverter(boolean useConverter)