public static class MicaBeanMap.MicaGenerator
extends org.springframework.cglib.core.AbstractClassGenerator
| Constructor and Description |
|---|
MicaGenerator() |
| Modifier and Type | Method and Description |
|---|---|
MicaBeanMap |
create()
Create a new instance of the
BeanMap. |
protected Object |
firstInstance(Class type) |
void |
generateClass(org.springframework.asm.ClassVisitor v) |
protected ClassLoader |
getDefaultClassLoader() |
protected ProtectionDomain |
getProtectionDomain() |
protected Object |
nextInstance(Object instance) |
void |
setBean(Object bean)
Set the bean that the generated map should reflect.
|
void |
setBeanClass(Class beanClass)
Set the class of the bean that the generated map should support.
|
void |
setNamePrefix(String namePrefix) |
void |
setRequire(int require)
Limit the properties reflected by the generated map.
|
create, generate, getAttemptLoad, getClassLoader, getClassName, getCurrent, getNamingPolicy, getStrategy, getUseCache, setAttemptLoad, setClassLoader, setContextClass, setNamingPolicy, setStrategy, setUseCache, unwrapCachedValue, wrapCachedClasspublic void setBean(Object bean)
setBean(java.lang.Object).
Calling this method overrides any value previously set using setBeanClass(java.lang.Class).
You must call either this method or setBeanClass(java.lang.Class) before create().bean - the initial beanpublic void setBeanClass(Class beanClass)
setBeanClass(java.lang.Class) before create().beanClass - the class of the beanpublic void setRequire(int require)
require - any combination of BeanMap.REQUIRE_GETTER and
BeanMap.REQUIRE_SETTER; default is zero (any property allowed)protected ClassLoader getDefaultClassLoader()
getDefaultClassLoader in class org.springframework.cglib.core.AbstractClassGeneratorprotected ProtectionDomain getProtectionDomain()
getProtectionDomain in class org.springframework.cglib.core.AbstractClassGeneratorpublic MicaBeanMap create()
BeanMap. An existing
generated class will be reused if possible.public void setNamePrefix(String namePrefix)
setNamePrefix in class org.springframework.cglib.core.AbstractClassGeneratorpublic void generateClass(org.springframework.asm.ClassVisitor v)
throws Exception
Exceptionprotected Object firstInstance(Class type)
firstInstance in class org.springframework.cglib.core.AbstractClassGeneratorCopyright © 2024. All rights reserved.