com.caucho.config.gen
Class AsynchronousGenerator<X>
java.lang.Object
com.caucho.config.gen.NullGenerator<X>
com.caucho.config.gen.AsynchronousGenerator<X>
- All Implemented Interfaces:
- AspectGenerator<X>
@Module
public class AsynchronousGenerator<X>
- extends NullGenerator<X>
Represents the @Asynchronous interception
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 |
AsynchronousGenerator
public AsynchronousGenerator(AsynchronousFactory<X> factory,
AnnotatedMethod<? super X> method,
AspectGenerator<X> head)
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()