com.caucho.ejb.gen
Class MessageGenerator<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.ejb.gen.MessageGenerator<X>

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

Generates the skeleton for a message bean.


Constructor Summary
MessageGenerator(java.lang.String ejbName, AnnotatedType<X> ejbClass)
           
 
Method Summary
 void addBusinessMethod(AnnotatedMethod<? super X> method)
           
protected  void addLifecycleMethod(AnnotatedMethod<? super X> method)
           
 void generate(JavaWriter out)
          Generates the message session bean
protected  AspectBeanFactory<X> getAspectBeanFactory()
           
 java.lang.String getContextClassName()
           
protected  AspectBeanFactory<X> getLifecycleAspectFactory()
           
 java.util.ArrayList<AspectGenerator<X>> getMethods()
          Returns the introspected methods
 java.lang.String getViewClassName()
           
 void introspect()
          Introspects the bean.
 
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, generateTopComment, getFullClassName, getPackageName
 
Methods inherited from class com.caucho.java.gen.BaseClass
addComponent, addDependencyComponent, addInterfaceName, addMethod, createMethod, findMethod, generateClassContent, 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

MessageGenerator

public MessageGenerator(java.lang.String ejbName,
                        AnnotatedType<X> ejbClass)
Method Detail

getLifecycleAspectFactory

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

getContextClassName

public java.lang.String getContextClassName()

getViewClassName

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

getAspectBeanFactory

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

getMethods

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

Overrides:
getMethods in class BeanGenerator<X>

introspect

public void introspect()
Introspects the bean.

Overrides:
introspect in class BeanGenerator<X>

addBusinessMethod

public void addBusinessMethod(AnnotatedMethod<? super X> method)

addLifecycleMethod

protected void addLifecycleMethod(AnnotatedMethod<? super X> method)

generate

public void generate(JavaWriter out)
              throws java.io.IOException
Generates the message session bean

Overrides:
generate in class GenClass
Parameters:
out - the writer to the output stream.
Throws:
java.io.IOException