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

public abstract Class ConstructorDelegate

extends Object
Class Inheritance
Annotations
@SuppressWarnings:rawtypes, unchecked
Imports
java.lang.reflect.Constructor, .Method, java.security.ProtectionDomain, org.springframework.asm.ClassVisitor, .Type, org.springframework.cglib.core.AbstractClassGenerator, .ClassEmitter, .CodeEmitter, .Constants, .EmitUtils, .KeyFactory, .ReflectUtils, .TypeUtils

Author
Chris Nokleberg
Version
$Id: ConstructorDelegate.java,v 1.20 2006/03/05 02:43:19 herbyderby Exp $

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 ConstructorDelegate.ConstructorKey

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static ConstructorDelegate
create(Class<T> targetClass, Class<T> iface)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

KEY_FACTORYback to summary
private static final ConstructorDelegate.ConstructorKey KEY_FACTORY

Constructor Detail

ConstructorDelegateback to summary
protected ConstructorDelegate()

Method Detail

createback to summary
public static ConstructorDelegate create(Class<T> targetClass, Class<T> iface)
org.springframework.cglib.reflect back to summary

pack-priv Interface ConstructorDelegate.ConstructorKey


Method Summary

Modifier and TypeMethod and Description
public Object
newInstance(String declaring, String iface)

Method Detail

newInstanceback to summary
public Object newInstance(String declaring, String iface)
org.springframework.cglib.reflect back to summary

public Class ConstructorDelegate.Generator

extends AbstractClassGenerator
Class Inheritance

Field Summary

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ConstructorDelegate
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
setInterface(Class<T> iface)

public void
setTargetClass(Class<T> targetClass)

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

Field Detail

CONSTRUCTOR_DELEGATEback to summary
private static final Type CONSTRUCTOR_DELEGATE
ifaceback to summary
private Class<T> iface
SOURCEback to summary
private static final AbstractClassGenerator.Source SOURCE
targetClassback to summary
private Class<T> targetClass

Constructor Detail

Generatorback to summary
public Generator()

Method Detail

createback to summary
public ConstructorDelegate 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
setInterfaceback to summary
public void setInterface(Class<T> iface)
setTargetClassback to summary
public void setTargetClass(Class<T> targetClass)