public static class KeyFactory.Generator extends AbstractClassGenerator
AbstractClassGenerator.ClassLoaderData, AbstractClassGenerator.Source
Constructor and Description |
---|
Generator() |
Modifier and Type | Method and Description |
---|---|
void |
addCustomizer(org.springframework.cglib.core.KeyFactoryCustomizer customizer) |
KeyFactory |
create() |
protected java.lang.Object |
firstInstance(java.lang.Class type) |
void |
generateClass(ClassVisitor v) |
<T> java.util.List<T> |
getCustomizers(java.lang.Class<T> klass) |
protected java.lang.ClassLoader |
getDefaultClassLoader() |
protected java.security.ProtectionDomain |
getProtectionDomain()
Returns the protection domain to use when defining the class.
|
protected java.lang.Object |
nextInstance(java.lang.Object instance) |
void |
setCustomizer(org.springframework.cglib.core.Customizer customizer)
Deprecated.
Use
addCustomizer(KeyFactoryCustomizer) instead. |
void |
setHashConstant(int constant) |
void |
setHashMultiplier(int multiplier) |
void |
setInterface(java.lang.Class keyInterface) |
create, generate, getAttemptLoad, getClassLoader, getClassName, getCurrent, getNamingPolicy, getStrategy, getUseCache, setAttemptLoad, setClassLoader, setContextClass, setNamePrefix, setNamingPolicy, setStrategy, setUseCache, unwrapCachedValue, wrapCachedClass
protected java.lang.ClassLoader getDefaultClassLoader()
getDefaultClassLoader
in class AbstractClassGenerator
protected java.security.ProtectionDomain getProtectionDomain()
AbstractClassGenerator
Default implementation returns null
for using a default protection domain. Sub-classes may
override to use a more specific protection domain.
getProtectionDomain
in class AbstractClassGenerator
null
for using a default)@Deprecated public void setCustomizer(org.springframework.cglib.core.Customizer customizer)
addCustomizer(KeyFactoryCustomizer)
instead.public void addCustomizer(org.springframework.cglib.core.KeyFactoryCustomizer customizer)
public <T> java.util.List<T> getCustomizers(java.lang.Class<T> klass)
public void setInterface(java.lang.Class keyInterface)
public KeyFactory create()
public void setHashConstant(int constant)
public void setHashMultiplier(int multiplier)
protected java.lang.Object firstInstance(java.lang.Class type)
firstInstance
in class AbstractClassGenerator
protected java.lang.Object nextInstance(java.lang.Object instance)
nextInstance
in class AbstractClassGenerator
public void generateClass(ClassVisitor v)