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

java.lang.Object
  extended by com.caucho.config.gen.NullGenerator<X>
      extended by com.caucho.config.gen.MethodTailGenerator<X>
          extended by com.caucho.config.gen.LifecycleMethodTailGenerator<X>
All Implemented Interfaces:
AspectGenerator<X>

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

Represents a lifecycle business method


Field Summary
 
Fields inherited from class com.caucho.config.gen.MethodTailGenerator
_factory, _method
 
Fields inherited from class com.caucho.config.gen.NullGenerator
NULL
 
Constructor Summary
LifecycleMethodTailGenerator(LifecycleMethodTailFactory<X> factory, AnnotatedMethod<? super X> method)
           
 
Method Summary
 void generateCall(JavaWriter out)
          Generates the call to the implementation bean.
 void generateMethodPrologue(JavaWriter out, java.util.HashMap<java.lang.String,java.lang.Object> map)
          Generates the static class prologue
 
Methods inherited from class com.caucho.config.gen.MethodTailGenerator
getMethod, isApplicationExceptionThrown
 
Methods inherited from class com.caucho.config.gen.NullGenerator
generate, generateApplicationException, generateAsync, generateBeanConstructor, generateBeanPrologue, generateDestroy, generateEpilogue, generateFinally, generateInject, 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
 

Constructor Detail

LifecycleMethodTailGenerator

public LifecycleMethodTailGenerator(LifecycleMethodTailFactory<X> factory,
                                    AnnotatedMethod<? super X> method)
Method Detail

generateMethodPrologue

public void generateMethodPrologue(JavaWriter out,
                                   java.util.HashMap<java.lang.String,java.lang.Object> map)
                            throws java.io.IOException
Description copied from class: NullGenerator
Generates the static class prologue

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

generateCall

public void generateCall(JavaWriter out)
                  throws java.io.IOException
Description copied from class: MethodTailGenerator
Generates the call to the implementation bean.

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