@Module public class MessageMethodTailGenerator<X> extends MethodTailGenerator<X>
_factory, _method
NULL
Constructor and Description |
---|
MessageMethodTailGenerator(MessageMethodTailFactory<X> factory,
AnnotatedMethod<? super X> method) |
Modifier and Type | Method and Description |
---|---|
void |
generatePreCall(JavaWriter out)
Generates code in the "try" block before the call
|
generateCall, getMethod, isApplicationExceptionThrown
generate, generateApplicationException, generateAsync, generateBeanConstructor, generateBeanPrologue, generateDestroy, generateEpilogue, generateFinally, generateInject, generateMethodPrologue, generatePostCall, generatePostConstruct, generatePostFinally, generatePreDestroy, generatePreTry, generateProxyConstructor, generateSystemException
public MessageMethodTailGenerator(MessageMethodTailFactory<X> factory, AnnotatedMethod<? super X> method)
public void generatePreCall(JavaWriter out) throws java.io.IOException
retType myMethod(...)
{
...
try {
[pre-call]
ret = super.myMethod(...)
...
}
generatePreCall
in interface AspectGenerator<X>
generatePreCall
in class NullGenerator<X>
java.io.IOException