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

public Class ImmutableBean

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

Author
Chris Nokleberg

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private static final Signature
private static final String
private static final Type
private static final Class<T>[]

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static Object
create(Object bean)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CSTRUCT_OBJECTback to summary
private static final Signature CSTRUCT_OBJECT
FIELD_NAMEback to summary
private static final String FIELD_NAME
ILLEGAL_STATE_EXCEPTIONback to summary
private static final Type ILLEGAL_STATE_EXCEPTION
OBJECT_CLASSESback to summary
private static final Class<T>[] OBJECT_CLASSES

Constructor Detail

ImmutableBeanback to summary
private ImmutableBean()

Method Detail

createback to summary
public static Object create(Object bean)
org.springframework.cglib.beans back to summary

public Class ImmutableBean.Generator

extends AbstractClassGenerator
Class Inheritance

Field Summary

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
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
Inherited from org.springframework.cglib.core.AbstractClassGenerator:
creategenerategetAttemptLoadgetClassLoadergetClassNamegetCurrentgetNamingPolicygetStrategygetUseCachesetAttemptLoadsetClassLoadersetContextClasssetNamePrefixsetNamingPolicysetStrategysetUseCacheunwrapCachedValuewrapCachedClass

Field Detail

beanback to summary
private Object bean
SOURCEback to summary
private static final AbstractClassGenerator.Source SOURCE
targetback to summary
private Class<T> target

Constructor Detail

Generatorback to summary
public Generator()

Method Detail

createback to summary
public Object 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
setBeanback to summary
public void setBean(Object bean)