Class MethodDelegate.Generator
java.lang.Object
org.springframework.cglib.core.AbstractClassGenerator
org.springframework.cglib.reflect.MethodDelegate.Generator
- All Implemented Interfaces:
- ClassGenerator
- Enclosing class:
- MethodDelegate
- 
Nested Class SummaryNested classes/interfaces inherited from class org.springframework.cglib.core.AbstractClassGeneratorAbstractClassGenerator.ClassLoaderData, AbstractClassGenerator.Source
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncreate()protected ObjectfirstInstance(Class type) voidprotected ClassLoaderprotected ProtectionDomainReturns the protection domain to use when defining the class.protected ObjectnextInstance(Object instance) voidsetInterface(Class iface) voidsetMethodName(String methodName) voidvoidsetTargetClass(Class targetClass) Methods inherited from class org.springframework.cglib.core.AbstractClassGeneratorcreate, generate, getAttemptLoad, getClassLoader, getClassName, getCurrent, getNamingPolicy, getStrategy, getUseCache, setAttemptLoad, setClassLoader, setContextClass, setNamePrefix, setNamingPolicy, setStrategy, setUseCache, unwrapCachedValue, wrapCachedClass
- 
Constructor Details- 
Generatorpublic Generator()
 
- 
- 
Method Details- 
setTarget
- 
setTargetClass
- 
setMethodName
- 
setInterface
- 
getDefaultClassLoader- Specified by:
- getDefaultClassLoaderin class- AbstractClassGenerator
 
- 
getProtectionDomainDescription copied from class:AbstractClassGeneratorReturns the protection domain to use when defining the class.Default implementation returns nullfor using a default protection domain. Sub-classes may override to use a more specific protection domain.- Overrides:
- getProtectionDomainin class- AbstractClassGenerator
- Returns:
- the protection domain (nullfor using a default)
 
- 
create
- 
firstInstance- Specified by:
- firstInstancein class- AbstractClassGenerator
 
- 
nextInstance- Specified by:
- nextInstancein class- AbstractClassGenerator
 
- 
generateClass- Throws:
- NoSuchMethodException
 
 
-