com.caucho.ejb.gen
Class SingletonMethodHeadGenerator<X>

java.lang.Object
  extended by com.caucho.config.gen.AbstractAspectGenerator<X>
      extended by com.caucho.config.gen.MethodHeadGenerator<X>
          extended by com.caucho.ejb.gen.SingletonMethodHeadGenerator<X>
All Implemented Interfaces:
AspectGenerator<X>

@Module
public class SingletonMethodHeadGenerator<X>
extends MethodHeadGenerator<X>

Represents a singleton local business method


Constructor Summary
SingletonMethodHeadGenerator(SingletonMethodHeadFactory<X> factory, AnnotatedMethod<? super X> method, AspectGenerator<X> next)
           
 
Method Summary
 void generateFinally(JavaWriter out)
          Generates the underlying bean instance
 void generatePreCall(JavaWriter out)
          Generates code before the call, in the try block.
 void generatePreTry(JavaWriter out)
          Generates code before the try block
protected  TransactionAttributeType getDefaultTransactionType()
           
 
Methods inherited from class com.caucho.config.gen.MethodHeadGenerator
equals, generate, getMethodName, getMethodNamePrefix, hashCode, isOverride
 
Methods inherited from class com.caucho.config.gen.AbstractAspectGenerator
generateApplicationException, generateAsync, generateBeanConstructor, generateBeanPrologue, generateCall, generateContent, generateDestroy, generateEpilogue, generateInject, generateMethodPrologue, generatePostCall, generatePostConstruct, generatePostFinally, generatePreDestroy, generateProxyConstructor, generateSystemException, getAnnotation, getAnnotation, getAnnotation, getBeanFactory, getBeanType, getFactory, getJavaClass, getJavaMethod, getMethod, getThrowsExceptions, getTypeVariables, isApplicationExceptionThrown, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SingletonMethodHeadGenerator

public SingletonMethodHeadGenerator(SingletonMethodHeadFactory<X> factory,
                                    AnnotatedMethod<? super X> method,
                                    AspectGenerator<X> next)
Method Detail

getDefaultTransactionType

protected TransactionAttributeType getDefaultTransactionType()

generatePreTry

public void generatePreTry(JavaWriter out)
                    throws java.io.IOException
Description copied from class: AbstractAspectGenerator
Generates code before the try block

Specified by:
generatePreTry in interface AspectGenerator<X>
Overrides:
generatePreTry in class AbstractAspectGenerator<X>
Throws:
java.io.IOException

generatePreCall

public void generatePreCall(JavaWriter out)
                     throws java.io.IOException
Description copied from class: AbstractAspectGenerator
Generates code before the call, in the try block.
 retType myMethod(...)
 {
   try {
     [pre-call]
     value = bean.myMethod(...);
     ...
 }
 

Specified by:
generatePreCall in interface AspectGenerator<X>
Overrides:
generatePreCall in class AbstractAspectGenerator<X>
Throws:
java.io.IOException

generateFinally

public void generateFinally(JavaWriter out)
                     throws java.io.IOException
Generates the underlying bean instance

Specified by:
generateFinally in interface AspectGenerator<X>
Overrides:
generateFinally in class AbstractAspectGenerator<X>
Throws:
java.io.IOException