com.caucho.config.gen
Class LifecycleInterceptor

java.lang.Object
  extended by com.caucho.config.gen.LifecycleInterceptor

public class LifecycleInterceptor
extends java.lang.Object

Represents the interception


Constructor Summary
LifecycleInterceptor(java.lang.Class<? extends java.lang.annotation.Annotation> annType)
           
 
Method Summary
 void generateCall(JavaWriter out)
           
 void generateConstructor(JavaWriter out, java.util.HashMap map)
           
protected  void generateGetMethod(JavaWriter out, java.lang.reflect.Method method)
           
protected  void generateGetMethod(JavaWriter out, java.lang.String className, java.lang.String methodName, java.lang.Class[] paramTypes)
           
protected  void generateMethodChain(JavaWriter out)
           
protected  void generateObjectChain(JavaWriter out)
           
 void generatePrologue(JavaWriter out, java.util.HashMap map)
           
 java.util.ArrayList<java.lang.Class<?>> getInterceptors()
           
 void introspect(AnnotatedType<?> implClass)
          Introspects the @Interceptors annotation on the method and the class.
 boolean isEnhanced()
          Returns true if the business method has any active XA annotation.
protected  void printCastClass(JavaWriter out, java.lang.Class type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LifecycleInterceptor

public LifecycleInterceptor(java.lang.Class<? extends java.lang.annotation.Annotation> annType)
Method Detail

isEnhanced

public boolean isEnhanced()
Returns true if the business method has any active XA annotation.


getInterceptors

public java.util.ArrayList<java.lang.Class<?>> getInterceptors()

introspect

public void introspect(AnnotatedType<?> implClass)
Introspects the @Interceptors annotation on the method and the class.


generatePrologue

public void generatePrologue(JavaWriter out,
                             java.util.HashMap map)
                      throws java.io.IOException
Throws:
java.io.IOException

generateConstructor

public void generateConstructor(JavaWriter out,
                                java.util.HashMap map)
                         throws java.io.IOException
Throws:
java.io.IOException

generateCall

public void generateCall(JavaWriter out)
                  throws java.io.IOException
Throws:
java.io.IOException

generateMethodChain

protected void generateMethodChain(JavaWriter out)
                            throws java.io.IOException
Throws:
java.io.IOException

generateObjectChain

protected void generateObjectChain(JavaWriter out)
                            throws java.io.IOException
Throws:
java.io.IOException

generateGetMethod

protected void generateGetMethod(JavaWriter out,
                                 java.lang.reflect.Method method)
                          throws java.io.IOException
Throws:
java.io.IOException

generateGetMethod

protected void generateGetMethod(JavaWriter out,
                                 java.lang.String className,
                                 java.lang.String methodName,
                                 java.lang.Class[] paramTypes)
                          throws java.io.IOException
Throws:
java.io.IOException

printCastClass

protected void printCastClass(JavaWriter out,
                              java.lang.Class type)
                       throws java.io.IOException
Throws:
java.io.IOException