@Module public class StatefulMethodHeadGenerator<X> extends MethodHeadGenerator<X>
Constructor and Description |
---|
StatefulMethodHeadGenerator(StatefulMethodHeadFactory<X> factory,
AnnotatedMethod<? super X> method,
AspectGenerator<X> next) |
StatefulMethodHeadGenerator(StatefulMethodHeadFactory<X> factory,
AnnotatedMethod<? super X> method,
AspectGenerator<X> next,
long lockTimeout,
java.util.concurrent.TimeUnit lockTimeoutUnit) |
Modifier and Type | Method and Description |
---|---|
void |
generateApplicationException(JavaWriter out,
java.lang.Class<?> exn)
Generates the underlying bean instance
|
void |
generateCall(JavaWriter out)
Generates the method interception code
|
void |
generateFinally(JavaWriter out)
Generates finally code for the method
|
void |
generateMethodPrologue(JavaWriter out,
java.util.HashMap<java.lang.String,java.lang.Object> map)
Generates the class prologue.
|
void |
generatePostCall(JavaWriter out)
Generates the underlying bean instance
|
void |
generatePreCall(JavaWriter out)
Generates code before the call, in the try block.
|
void |
generatePreTry(JavaWriter out)
Generates code before the try block
|
protected TransactionAttributeType |
getDefaultTransactionType() |
equals, generate, getMethodName, getMethodNamePrefix, hashCode, isOverride
generateAsync, generateBeanConstructor, generateBeanPrologue, generateContent, generateDestroy, generateEpilogue, generateInject, generatePostConstruct, generatePostFinally, generatePreDestroy, generateProxyConstructor, generateSystemException, getAnnotation, getAnnotation, getAnnotation, getBeanFactory, getBeanType, getFactory, getInstanceName, getJavaClass, getJavaMethod, getMethod, getThrowsExceptions, getTypeVariables, isApplicationExceptionThrown, toString
public StatefulMethodHeadGenerator(StatefulMethodHeadFactory<X> factory, AnnotatedMethod<? super X> method, AspectGenerator<X> next)
public StatefulMethodHeadGenerator(StatefulMethodHeadFactory<X> factory, AnnotatedMethod<? super X> method, AspectGenerator<X> next, long lockTimeout, java.util.concurrent.TimeUnit lockTimeoutUnit)
protected TransactionAttributeType getDefaultTransactionType()
public void generateMethodPrologue(JavaWriter out, java.util.HashMap<java.lang.String,java.lang.Object> map) throws java.io.IOException
generateMethodPrologue
in interface AspectGenerator<X>
generateMethodPrologue
in class AbstractAspectGenerator<X>
java.io.IOException
public void generatePreTry(JavaWriter out) throws java.io.IOException
AbstractAspectGenerator
generatePreTry
in interface AspectGenerator<X>
generatePreTry
in class AbstractAspectGenerator<X>
java.io.IOException
public void generatePreCall(JavaWriter out) throws java.io.IOException
AbstractAspectGenerator
retType myMethod(...)
{
try {
[pre-call]
value = bean.myMethod(...);
...
}
generatePreCall
in interface AspectGenerator<X>
generatePreCall
in class AbstractAspectGenerator<X>
java.io.IOException
public void generateCall(JavaWriter out) throws java.io.IOException
AbstractAspectGenerator
generateCall
in interface AspectGenerator<X>
generateCall
in class AbstractAspectGenerator<X>
java.io.IOException
public void generatePostCall(JavaWriter out) throws java.io.IOException
generatePostCall
in interface AspectGenerator<X>
generatePostCall
in class AbstractAspectGenerator<X>
java.io.IOException
public void generateApplicationException(JavaWriter out, java.lang.Class<?> exn) throws java.io.IOException
generateApplicationException
in interface AspectGenerator<X>
generateApplicationException
in class AbstractAspectGenerator<X>
java.io.IOException
public void generateFinally(JavaWriter out) throws java.io.IOException
AbstractAspectGenerator
generateFinally
in interface AspectGenerator<X>
generateFinally
in class AbstractAspectGenerator<X>
java.io.IOException