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

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

@Module
public class MessageXaCallChain<X>
extends XaGenerator<X>

Represents the xa interception


Constructor Summary
MessageXaCallChain(XaFactory<X> factory, AnnotatedMethod<? super X> method, AspectGenerator<X> next)
           
 
Method Summary
 void generatePreCall(JavaWriter out)
          Generates the interceptor code after the try-block and before the call.
 
Methods inherited from class com.caucho.config.gen.XaGenerator
generateApplicationException, generateFinally, generateMethodPrologue, generatePostCall, generatePreTry, generateSystemException, getTransactionType
 
Methods inherited from class com.caucho.config.gen.AbstractAspectGenerator
generate, generateAsync, generateBeanConstructor, generateBeanPrologue, generateCall, generateContent, generateDestroy, generateEpilogue, generateInject, generatePostConstruct, generatePostFinally, generatePreDestroy, generateProxyConstructor, getAnnotation, getAnnotation, getAnnotation, getBeanFactory, getBeanType, getFactory, getJavaClass, getJavaMethod, getMethod, getThrowsExceptions, getTypeVariables, isApplicationExceptionThrown, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MessageXaCallChain

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

generatePreCall

public void generatePreCall(JavaWriter out)
                     throws java.io.IOException
Description copied from class: XaGenerator
Generates the interceptor code after the try-block and before the call.
 retType myMethod(...)
 {
   try {
     [pre-call]
     retValue = super.myMethod(...);
 }
 

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