com.caucho.config.gen
Class CandiMethodHeadGenerator<X>

java.lang.Object
  extended by com.caucho.config.gen.AbstractAspectGenerator<X>
      extended by com.caucho.config.gen.MethodHeadGenerator<X>
          extended by com.caucho.config.gen.CandiMethodHeadGenerator<X>
All Implemented Interfaces:
AspectGenerator<X>

@Module
public class CandiMethodHeadGenerator<X>
extends MethodHeadGenerator<X>

Represents a CDI local business method


Constructor Summary
CandiMethodHeadGenerator(MethodHeadFactory<X> factory, AnnotatedMethod<? super X> method, AspectGenerator<X> next)
           
 
Method Summary
 void generatePreTry(JavaWriter out)
          Generates code before the "try" block
 
Methods inherited from class com.caucho.config.gen.MethodHeadGenerator
equals, generate, getMethodName, getMethodNamePrefix, hashCode, isOverride
 
Methods inherited from class com.caucho.config.gen.AbstractAspectGenerator
generateApplicationException, generateAsync, generateBeanConstructor, generateBeanPrologue, generateCall, generateContent, generateDestroy, generateEpilogue, generateFinally, generateInject, generateMethodPrologue, generatePostCall, generatePostConstruct, generatePostFinally, generatePreCall, generatePreDestroy, generateProxyConstructor, generateSystemException, getAnnotation, getAnnotation, getAnnotation, getBeanFactory, getBeanType, getFactory, getJavaClass, getJavaMethod, getMethod, getThrowsExceptions, getTypeVariables, isApplicationExceptionThrown, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CandiMethodHeadGenerator

public CandiMethodHeadGenerator(MethodHeadFactory<X> factory,
                                AnnotatedMethod<? super X> method,
                                AspectGenerator<X> next)
Method Detail

generatePreTry

public void generatePreTry(JavaWriter out)
                    throws java.io.IOException
Generates code before the "try" block
 retType myMethod(...)
 {
   [pre-try]
   try {
     ...
 }
 

Specified by:
generatePreTry in interface AspectGenerator<X>
Overrides:
generatePreTry in class AbstractAspectGenerator<X>
Throws:
java.io.IOException