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

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

@Module
public class AsynchronousGenerator<X>
extends NullGenerator<X>

Represents the @Asynchronous interception


Field Summary
 
Fields inherited from class com.caucho.config.gen.NullGenerator
NULL
 
Constructor Summary
AsynchronousGenerator(AsynchronousFactory<X> factory, AnnotatedMethod<? super X> method, AspectGenerator<X> head)
           
 
Method Summary
 void generate(JavaWriter out, java.util.HashMap<java.lang.String,java.lang.Object> prologueMap)
          Top-level generator.
 void generateCall(JavaWriter out)
          Generates the method interception code
 void generateMethodPrologue(JavaWriter out, java.util.HashMap<java.lang.String,java.lang.Object> map)
          Generates the static class prologue
protected  java.lang.reflect.Method getJavaMethod()
           
 boolean isAsync()
           
 boolean isEnhanced()
          Returns true if the business method has any active XA annotation.
 
Methods inherited from class com.caucho.config.gen.NullGenerator
generateApplicationException, generateAsync, generateBeanConstructor, generateBeanPrologue, generateDestroy, generateEpilogue, generateFinally, generateInject, generatePostCall, generatePostConstruct, generatePostFinally, generatePreCall, generatePreDestroy, generatePreTry, generateProxyConstructor, generateSystemException, getMethod, isApplicationExceptionThrown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsynchronousGenerator

public AsynchronousGenerator(AsynchronousFactory<X> factory,
                             AnnotatedMethod<? super X> method,
                             AspectGenerator<X> head)
Method Detail

isEnhanced

public boolean isEnhanced()
Returns true if the business method has any active XA annotation.


isAsync

public boolean isAsync()

generateMethodPrologue

public void generateMethodPrologue(JavaWriter out,
                                   java.util.HashMap<java.lang.String,java.lang.Object> map)
                            throws java.io.IOException
Description copied from class: NullGenerator
Generates the static class prologue

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

generate

public void generate(JavaWriter out,
                     java.util.HashMap<java.lang.String,java.lang.Object> prologueMap)
              throws java.io.IOException
Description copied from interface: AspectGenerator
Top-level generator.

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

generateCall

public void generateCall(JavaWriter out)
                  throws java.io.IOException
Description copied from class: NullGenerator
Generates the method interception code

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

getJavaMethod

protected java.lang.reflect.Method getJavaMethod()