com.caucho.config.gen
Class CandiBeanGenerator<X>

java.lang.Object
  extended by com.caucho.java.gen.ClassComponent
      extended by com.caucho.java.gen.BaseClass
          extended by com.caucho.java.gen.GenClass
              extended by com.caucho.config.gen.BeanGenerator<X>
                  extended by com.caucho.config.gen.CandiBeanGenerator<X>

@Module
public class CandiBeanGenerator<X>
extends BeanGenerator<X>

Generates the skeleton for a session bean.


Constructor Summary
CandiBeanGenerator(InjectManager manager, AnnotatedType<X> beanClass)
           
 
Method Summary
 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 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)
           
 
Methods inherited from class com.caucho.config.gen.BeanGenerator
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
 
Methods inherited from class com.caucho.java.gen.GenClass
addImport, generate, generateTopComment, getFullClassName, getPackageName
 
Methods inherited from class com.caucho.java.gen.BaseClass
addComponent, addDependencyComponent, addInterfaceName, addMethod, createMethod, findMethod, generateComponents, getClassName, setClassName, setStatic, setSuperClassName, setVisibility
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CandiBeanGenerator

public CandiBeanGenerator(InjectManager manager,
                          AnnotatedType<X> beanClass)
Method Detail

setSingleton

public void setSingleton(boolean isSingleton)

getBusinessMethods

public java.util.ArrayList<AspectGenerator<X>> getBusinessMethods()

getLifecycleAspectFactory

public AspectBeanFactory<X> getLifecycleAspectFactory()
Overrides:
getLifecycleAspectFactory in class BeanGenerator<X>

introspect

public void introspect()
Overrides:
introspect in class BeanGenerator<X>

introspectClass

protected void introspectClass(AnnotatedType<X> cl)

getViewClassName

public java.lang.String getViewClassName()
Overrides:
getViewClassName in class BeanGenerator<X>

getMethods

public java.util.ArrayList<AspectGenerator<X>> getMethods()
Returns the introspected methods

Overrides:
getMethods in class BeanGenerator<X>

generateClass

public java.lang.Class<?> generateClass()

isEnhanced

protected boolean isEnhanced()

generateClassContent

protected void generateClassContent(JavaWriter out)
                             throws java.io.IOException
Description copied from class: BaseClass
Generates the class content.

Overrides:
generateClassContent in class BaseClass
Throws:
java.io.IOException

generateHeader

protected void generateHeader(JavaWriter out)
                       throws java.io.IOException
Generates header and prologue data.

Throws:
java.io.IOException

generateSerializeHandle

protected void generateSerializeHandle(JavaWriter out)
                                throws java.io.IOException
Throws:
java.io.IOException

generateSerialize

protected void generateSerialize(JavaWriter out)
                          throws java.io.IOException
Throws:
java.io.IOException

generateReadResolve

protected void generateReadResolve(JavaWriter out)
                            throws java.io.IOException
Throws:
java.io.IOException

generateWriteReplace

protected void generateWriteReplace(JavaWriter out)
                             throws java.io.IOException
Throws:
java.io.IOException

generateConstructor

protected void generateConstructor(JavaWriter out,
                                   java.lang.reflect.Constructor<?> ctor)
                            throws java.io.IOException
Throws:
java.io.IOException

generateThrows

protected void generateThrows(JavaWriter out,
                              java.lang.Class<?>[] exnCls)
                       throws java.io.IOException
Throws:
java.io.IOException

getAspectBeanFactory

protected AspectBeanFactory<X> getAspectBeanFactory()
Specified by:
getAspectBeanFactory in class BeanGenerator<X>