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

java.lang.Object
  extended by com.caucho.config.gen.NullGenerator<X>
      extended by com.caucho.config.gen.MethodTailGenerator<X>
          extended by com.caucho.ejb.gen.MessageMethodTailGenerator<X>
All Implemented Interfaces:
AspectGenerator<X>

@Module
public class MessageMethodTailGenerator<X>
extends MethodTailGenerator<X>

Represents a stateless local business method


Field Summary
 
Fields inherited from class com.caucho.config.gen.MethodTailGenerator
_factory, _method
 
Fields inherited from class com.caucho.config.gen.NullGenerator
NULL
 
Constructor Summary
MessageMethodTailGenerator(MessageMethodTailFactory<X> factory, AnnotatedMethod<? super X> method)
           
 
Method Summary
 void generatePreCall(JavaWriter out)
          Generates code in the "try" block before the call
 
Methods inherited from class com.caucho.config.gen.MethodTailGenerator
generateCall, getMethod, isApplicationExceptionThrown
 
Methods inherited from class com.caucho.config.gen.NullGenerator
generate, generateApplicationException, generateAsync, generateBeanConstructor, generateBeanPrologue, generateDestroy, generateEpilogue, generateFinally, generateInject, generateMethodPrologue, generatePostCall, generatePostConstruct, generatePostFinally, generatePreDestroy, generatePreTry, generateProxyConstructor, generateSystemException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageMethodTailGenerator

public MessageMethodTailGenerator(MessageMethodTailFactory<X> factory,
                                  AnnotatedMethod<? super X> method)
Method Detail

generatePreCall

public void generatePreCall(JavaWriter out)
                     throws java.io.IOException
Generates code in the "try" block before the call
 retType myMethod(...)
 {
   ...
   try {
     [pre-call]
     ret = super.myMethod(...)
     ...
 }
 

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