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

java.lang.Object
  extended by com.caucho.config.gen.NullGenerator<X>
      extended by com.caucho.config.gen.MethodTailGenerator<X>
All Implemented Interfaces:
AspectGenerator<X>
Direct Known Subclasses:
LifecycleMethodTailGenerator, MessageMethodTailGenerator, StatelessMethodTailGenerator

@Module
public class MethodTailGenerator<X>
extends NullGenerator<X>

The dispatch to the actual method call for the aspect chain.


Field Summary
protected  MethodTailFactory<X> _factory
           
protected  AnnotatedMethod<? super X> _method
           
 
Fields inherited from class com.caucho.config.gen.NullGenerator
NULL
 
Constructor Summary
MethodTailGenerator(MethodTailFactory<X> factory, AnnotatedMethod<? super X> method)
           
 
Method Summary
 void generateCall(JavaWriter out)
          Generates the call to the implementation bean.
 AnnotatedMethod<? super X> getMethod()
          Returns the underlying method.
 boolean isApplicationExceptionThrown()
          True if the application exceptions are thrown
 
Methods inherited from class com.caucho.config.gen.NullGenerator
generate, generateApplicationException, generateAsync, generateBeanConstructor, generateBeanPrologue, generateDestroy, generateEpilogue, generateFinally, generateInject, generateMethodPrologue, generatePostCall, generatePostConstruct, generatePostFinally, generatePreCall, generatePreDestroy, generatePreTry, generateProxyConstructor, generateSystemException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_factory

protected final MethodTailFactory<X> _factory

_method

protected final AnnotatedMethod<? super X> _method
Constructor Detail

MethodTailGenerator

public MethodTailGenerator(MethodTailFactory<X> factory,
                           AnnotatedMethod<? super X> method)
Method Detail

getMethod

public AnnotatedMethod<? super X> getMethod()
Description copied from interface: AspectGenerator
Returns the underlying method.

Specified by:
getMethod in interface AspectGenerator<X>
Overrides:
getMethod in class NullGenerator<X>

generateCall

public void generateCall(JavaWriter out)
                  throws java.io.IOException
Generates the call to the implementation bean.

Specified by:
generateCall in interface AspectGenerator<X>
Overrides:
generateCall in class NullGenerator<X>
Parameters:
superVar - java code to reference the implementation
Throws:
java.io.IOException

isApplicationExceptionThrown

public boolean isApplicationExceptionThrown()
Description copied from class: NullGenerator
True if the application exceptions are thrown

Specified by:
isApplicationExceptionThrown in interface AspectGenerator<X>
Overrides:
isApplicationExceptionThrown in class NullGenerator<X>