@Module public class CandiBeanGenerator<X> extends BeanGenerator<X>
Constructor and Description |
---|
CandiBeanGenerator(InjectManager manager,
AnnotatedType<X> beanClass) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
findWriteReplace(java.lang.Class<?> cl) |
java.lang.Class<?> |
generateClass() |
protected void |
generateClassContent(JavaWriter out)
Generates the class content.
|
protected void |
generateConstructor(JavaWriter out,
java.lang.reflect.Constructor<?> ctor) |
protected void |
generateHeader(JavaWriter out)
Generates header and prologue data.
|
protected void |
generateReadResolve(JavaWriter out) |
protected void |
generateSerialize(JavaWriter out) |
protected void |
generateSerialize(JavaWriter out,
java.lang.String var) |
protected void |
generateSerializeHandle(JavaWriter out) |
protected void |
generateThrows(JavaWriter out,
java.lang.Class<?>[] exnCls) |
protected void |
generateWriteReplace(JavaWriter out) |
protected AspectBeanFactory<X> |
getAspectBeanFactory() |
java.util.ArrayList<AspectGenerator<X>> |
getBusinessMethods() |
AspectBeanFactory<X> |
getLifecycleAspectFactory() |
java.util.ArrayList<AspectGenerator<X>> |
getMethods()
Returns the introspected methods
|
java.lang.String |
getViewClassName() |
void |
introspect() |
protected void |
introspectClass(AnnotatedType<X> cl) |
protected boolean |
isEnhanced() |
void |
setSingleton(boolean isSingleton) |
addDependency, addDependency, generateBeanConstructor, generateBeanConstructor, generateBeanPrologue, generateBusinessMethods, generateClassStaticFields, generateContextObjectConstructor, generateDelegate, generateDependency, generateDestroy, generateDestroyImpl, generateDestroyViews, generateEpilogue, generateFreeInstance, generateInject, generateInjectContent, generateLifecycleMethod, generateLifecycleMethodReflection, generateLifecycleMethods, generatePostConstruct, generatePostConstructImpl, generateProxyConstructor, generateProxyConstructor, generateTimer, getBeanClassName, getBeanType, getLifecycleAspects, getLifecycleInstance, getLifecycleMethods, isProxy, isRemote, toString
addImport, generate, generateTopComment, getFullClassName, getPackageName
addComponent, addDependencyComponent, addInterfaceName, addMethod, createMethod, findMethod, generateComponents, getClassName, setClassName, setStatic, setSuperClassName, setVisibility
public CandiBeanGenerator(InjectManager manager, AnnotatedType<X> beanClass)
public void setSingleton(boolean isSingleton)
public java.util.ArrayList<AspectGenerator<X>> getBusinessMethods()
public AspectBeanFactory<X> getLifecycleAspectFactory()
getLifecycleAspectFactory
in class BeanGenerator<X>
public void introspect()
introspect
in class BeanGenerator<X>
protected void introspectClass(AnnotatedType<X> cl)
public java.lang.String getViewClassName()
getViewClassName
in class BeanGenerator<X>
public java.util.ArrayList<AspectGenerator<X>> getMethods()
getMethods
in class BeanGenerator<X>
public java.lang.Class<?> generateClass()
protected boolean isEnhanced()
protected void generateClassContent(JavaWriter out) throws java.io.IOException
BaseClass
generateClassContent
in class BaseClass
java.io.IOException
protected void generateHeader(JavaWriter out) throws java.io.IOException
java.io.IOException
protected void generateSerializeHandle(JavaWriter out) throws java.io.IOException
java.io.IOException
protected void generateSerialize(JavaWriter out) throws java.io.IOException
java.io.IOException
protected void generateSerialize(JavaWriter out, java.lang.String var) throws java.io.IOException
java.io.IOException
protected void generateReadResolve(JavaWriter out) throws java.io.IOException
java.io.IOException
protected void generateWriteReplace(JavaWriter out) throws java.io.IOException
java.io.IOException
protected boolean findWriteReplace(java.lang.Class<?> cl)
protected void generateConstructor(JavaWriter out, java.lang.reflect.Constructor<?> ctor) throws java.io.IOException
java.io.IOException
protected void generateThrows(JavaWriter out, java.lang.Class<?>[] exnCls) throws java.io.IOException
java.io.IOException
protected AspectBeanFactory<X> getAspectBeanFactory()
getAspectBeanFactory
in class BeanGenerator<X>