public class LifecycleInterceptor
extends java.lang.Object
Constructor and Description |
---|
LifecycleInterceptor(java.lang.Class<? extends java.lang.annotation.Annotation> annType) |
Modifier and Type | Method and Description |
---|---|
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) |
public LifecycleInterceptor(java.lang.Class<? extends java.lang.annotation.Annotation> annType)
public boolean isEnhanced()
public java.util.ArrayList<java.lang.Class<?>> getInterceptors()
public void introspect(AnnotatedType<?> implClass)
public void generatePrologue(JavaWriter out, java.util.HashMap map) throws java.io.IOException
java.io.IOException
public void generateConstructor(JavaWriter out, java.util.HashMap map) throws java.io.IOException
java.io.IOException
public void generateCall(JavaWriter out) throws java.io.IOException
java.io.IOException
protected void generateMethodChain(JavaWriter out) throws java.io.IOException
java.io.IOException
protected void generateObjectChain(JavaWriter out) throws java.io.IOException
java.io.IOException
protected void generateGetMethod(JavaWriter out, java.lang.reflect.Method method) throws java.io.IOException
java.io.IOException
protected void generateGetMethod(JavaWriter out, java.lang.String className, java.lang.String methodName, java.lang.Class[] paramTypes) throws java.io.IOException
java.io.IOException
protected void printCastClass(JavaWriter out, java.lang.Class type) throws java.io.IOException
java.io.IOException