@Module public class AsynchronousGenerator<X> extends NullGenerator<X>
NULL
Constructor and Description |
---|
AsynchronousGenerator(AsynchronousFactory<X> factory,
AnnotatedMethod<? super X> method,
AspectGenerator<X> head) |
Modifier and Type | Method and Description |
---|---|
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.
|
generateApplicationException, generateAsync, generateBeanConstructor, generateBeanPrologue, generateDestroy, generateEpilogue, generateFinally, generateInject, generatePostCall, generatePostConstruct, generatePostFinally, generatePreCall, generatePreDestroy, generatePreTry, generateProxyConstructor, generateSystemException, getMethod, isApplicationExceptionThrown
public AsynchronousGenerator(AsynchronousFactory<X> factory, AnnotatedMethod<? super X> method, AspectGenerator<X> head)
public boolean isEnhanced()
public boolean isAsync()
public void generateMethodPrologue(JavaWriter out, java.util.HashMap<java.lang.String,java.lang.Object> map) throws java.io.IOException
NullGenerator
generateMethodPrologue
in interface AspectGenerator<X>
generateMethodPrologue
in class NullGenerator<X>
java.io.IOException
public void generate(JavaWriter out, java.util.HashMap<java.lang.String,java.lang.Object> prologueMap) throws java.io.IOException
AspectGenerator
generate
in interface AspectGenerator<X>
generate
in class NullGenerator<X>
java.io.IOException
public void generateCall(JavaWriter out) throws java.io.IOException
NullGenerator
generateCall
in interface AspectGenerator<X>
generateCall
in class NullGenerator<X>
java.io.IOException
protected java.lang.reflect.Method getJavaMethod()