类 KeyFactory.Generator
- java.lang.Object
- org.springframework.cglib.core.AbstractClassGenerator
- org.springframework.cglib.core.KeyFactory.Generator
- 所有已实现的接口:
org.springframework.cglib.core.ClassGenerator
- 封闭类:
- KeyFactory
public static class KeyFactory.Generator extends AbstractClassGenerator
嵌套类概要
从类继承的嵌套类/接口 org.springframework.cglib.core.AbstractClassGenerator
AbstractClassGenerator.ClassLoaderData, AbstractClassGenerator.Source
构造器概要
构造器 构造器 说明 Generator()
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 void
addCustomizer(org.springframework.cglib.core.KeyFactoryCustomizer customizer)
KeyFactory
create()
protected Object
firstInstance(Class type)
void
generateClass(ClassVisitor v)
<T> List<T>
getCustomizers(Class<T> klass)
protected ClassLoader
getDefaultClassLoader()
protected ProtectionDomain
getProtectionDomain()
Returns the protection domain to use when defining the class.protected Object
nextInstance(Object instance)
void
setCustomizer(org.springframework.cglib.core.Customizer customizer)
已过时。UseaddCustomizer(KeyFactoryCustomizer)
instead.void
setHashConstant(int constant)
void
setHashMultiplier(int multiplier)
void
setInterface(Class keyInterface)
从类继承的方法 org.springframework.cglib.core.AbstractClassGenerator
create, generate, getAttemptLoad, getClassLoader, getClassName, getCurrent, getNamingPolicy, getStrategy, getUseCache, setAttemptLoad, setClassLoader, setContextClass, setNamePrefix, setNamingPolicy, setStrategy, setUseCache, unwrapCachedValue, wrapCachedClass
构造器详细资料
Generator
public Generator()
方法详细资料
getDefaultClassLoader
protected ClassLoader getDefaultClassLoader()
getProtectionDomain
protected ProtectionDomain getProtectionDomain()
从类复制的说明:AbstractClassGenerator
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.- 覆盖:
getProtectionDomain
在类中AbstractClassGenerator
- 返回:
- the protection domain (
null
for using a default)
setCustomizer
@Deprecated public void setCustomizer(org.springframework.cglib.core.Customizer customizer)
已过时。UseaddCustomizer(KeyFactoryCustomizer)
instead.
addCustomizer
public void addCustomizer(org.springframework.cglib.core.KeyFactoryCustomizer customizer)
getCustomizers
public <T> List<T> getCustomizers(Class<T> klass)
setInterface
public void setInterface(Class keyInterface)
create
public KeyFactory create()
setHashConstant
public void setHashConstant(int constant)
setHashMultiplier
public void setHashMultiplier(int multiplier)
firstInstance
protected Object firstInstance(Class type)
- 指定者:
firstInstance
在类中AbstractClassGenerator
nextInstance
protected Object nextInstance(Object instance)
- 指定者:
nextInstance
在类中AbstractClassGenerator
generateClass
public void generateClass(ClassVisitor v)