jasco.runtime
Class ReflectJascoMethod

java.lang.Object
  extended by jasco.runtime.JascoMethod
      extended by jasco.runtime.ReflectJascoMethod
All Implemented Interfaces:
MethodJoinpoint, java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
DistributedJascoMethod

public class ReflectJascoMethod
extends JascoMethod

Author:
Wim
See Also:
Serialized Form

Constructor Summary
ReflectJascoMethod(java.lang.String fullname, java.lang.String aName, java.lang.String aClassName, int methodid, JAsCoBeanCallback callbackObject, int modifiers, boolean isExecution)
           
 
Method Summary
protected  void initCallbackMethod()
           
 java.lang.Object invokeOriginal(java.lang.Object obj, java.lang.Object[] args)
          Invokes the original method, only availabe in around advice.
 java.lang.Object invokeOriginalJAsCoMethod()
          Invokes the original method with original arguments, only availabe in around advice.
 
Methods inherited from class jasco.runtime.JascoMethod
buildFrom, clearLinkedHooks, clearProceedCheck, copy, dontLoadClass, dontLoadClass, getActualArgumentTypes, getAnnotations, getArgumentsArray, getCalledObject, getClassLoader, getClassName, getExceptionTypes, getFormalArgumentTypeNames, getFormalArgumentTypes, getFullName, getID, getJavassistMethod, getLinkedHooks, getModifiers, getName, getReflectMethod, getReturnType, getReturnTypeName, getSignature, getSourceLocation, initClassLoader, initFrom, initJavassistMethod, initReflectMethod, initReflectMethod, inlineCompiled, invoke, invokeAgain, invokeAgain, invokeJAsCoMethod, invokeNoAspectAgain, isCall, isExecution, loadClass, loadClass, resetProceedChain, setArgumentsArray, setCallbackObject, setCalledObject, setExceptionTypes, setFormalArgumentTypes, setInlineCompiled, setLinkedHooks, setReturnTypeName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReflectJascoMethod

public ReflectJascoMethod(java.lang.String fullname,
                          java.lang.String aName,
                          java.lang.String aClassName,
                          int methodid,
                          JAsCoBeanCallback callbackObject,
                          int modifiers,
                          boolean isExecution)
Method Detail

initCallbackMethod

protected void initCallbackMethod()

invokeOriginalJAsCoMethod

public java.lang.Object invokeOriginalJAsCoMethod()
                                           throws java.lang.Exception
Description copied from class: JascoMethod
Invokes the original method with original arguments, only availabe in around advice. WARNING: This method bypasses the around chain, subsequent arounds are not executed! Use invokeJAsCoMethod if you just want to proceed.

Specified by:
invokeOriginalJAsCoMethod in interface MethodJoinpoint
Overrides:
invokeOriginalJAsCoMethod in class JascoMethod
Throws:
java.lang.Exception

invokeOriginal

public java.lang.Object invokeOriginal(java.lang.Object obj,
                                       java.lang.Object[] args)
                                throws java.lang.Exception
Description copied from class: JascoMethod
Invokes the original method, only availabe in around advice. WARNING: This method bypasses the around chain, subsequent arounds are not executed! Use invokeJAsCoMethod if you just want to proceed.

Specified by:
invokeOriginal in interface MethodJoinpoint
Overrides:
invokeOriginal in class JascoMethod
Parameters:
obj - The object to invoke the method upon, is typically calledobject keyword
args - The arguments to invoke the original method with.
Throws:
java.lang.Exception