@Module public class SingletonMethodHeadGenerator<X> extends MethodHeadGenerator<X>
Constructor and Description |
---|
SingletonMethodHeadGenerator(SingletonMethodHeadFactory<X> factory,
AnnotatedMethod<? super X> method,
AspectGenerator<X> next) |
Modifier and Type | Method and Description |
---|---|
void |
generateFinally(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
generateApplicationException, generateAsync, generateBeanConstructor, generateBeanPrologue, generateCall, generateContent, generateDestroy, generateEpilogue, generateInject, generateMethodPrologue, generatePostCall, generatePostConstruct, generatePostFinally, generatePreDestroy, generateProxyConstructor, generateSystemException, getAnnotation, getAnnotation, getAnnotation, getBeanFactory, getBeanType, getFactory, getInstanceName, getJavaClass, getJavaMethod, getMethod, getThrowsExceptions, getTypeVariables, isApplicationExceptionThrown, toString
public SingletonMethodHeadGenerator(SingletonMethodHeadFactory<X> factory, AnnotatedMethod<? super X> method, AspectGenerator<X> next)
protected TransactionAttributeType getDefaultTransactionType()
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 generateFinally(JavaWriter out) throws java.io.IOException
generateFinally
in interface AspectGenerator<X>
generateFinally
in class AbstractAspectGenerator<X>
java.io.IOException