org.codehaus.aspectwerkz.joinpoint
Class MemberMethodJoinPoint

java.lang.Object
  extended byorg.codehaus.aspectwerkz.joinpoint.AbstractJoinPoint
      extended byorg.codehaus.aspectwerkz.joinpoint.MethodJoinPoint
          extended byorg.codehaus.aspectwerkz.joinpoint.MemberMethodJoinPoint
All Implemented Interfaces:
JoinPoint, java.io.Serializable

public class MemberMethodJoinPoint
extends MethodJoinPoint

Matches well defined point of execution in the program where a member method is executed.

Stores meta data from the join point. I.e. a reference to original object and method, the parameters to the result from the original method invocation etc.

Handles the invocation of the advices added to the join point.

Author:
Jonas Bonér, Alexandre Vasseur
See Also:
Serialized Form

Constructor Summary
MemberMethodJoinPoint(java.lang.String uuid, java.lang.Object targetInstance, java.lang.String targetClassName, int methodId, java.lang.String controllerClass)
          Creates a new MemberMethodJoinPoint object.
 
Method Summary
 boolean equals(java.lang.Object o)
          The overridden equals method.
 java.lang.Object getTargetInstance()
          Returns the original object.
 int hashCode()
          Overrides hashCode.
 
Methods inherited from class org.codehaus.aspectwerkz.joinpoint.MethodJoinPoint
createAdviceNotCorrectlyMappedMessage, getCFlowExpressions, getMethod, getMethodId, getMethodMetaData, getMethodName, getOriginalMethod, getParameters, getParameterTypes, getPointcuts, getProxyMethod, getResult, getReturnType, getSystem, getTargetClass, getUuid, invokeOriginalMethod, proceed, proceedInNewThread, setCFlowExpressions, setParameters, setPointcuts, setResult, toString
 
Methods inherited from class org.codehaus.aspectwerkz.joinpoint.AbstractJoinPoint
getAttribute
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MemberMethodJoinPoint

public MemberMethodJoinPoint(java.lang.String uuid,
                             java.lang.Object targetInstance,
                             java.lang.String targetClassName,
                             int methodId,
                             java.lang.String controllerClass)
Creates a new MemberMethodJoinPoint object.

Parameters:
uuid - the UUID for the AspectWerkz system to use
targetInstance - the target instance
targetClassName - the target class
methodId - the id of the original method
controllerClass - the class name of the controller class to use
Method Detail

getTargetInstance

public java.lang.Object getTargetInstance()
Returns the original object.

Specified by:
getTargetInstance in interface JoinPoint
Specified by:
getTargetInstance in class MethodJoinPoint
Returns:
the original object

hashCode

public int hashCode()
Overrides hashCode.

Overrides:
hashCode in class MethodJoinPoint
Returns:
the hash code

equals

public boolean equals(java.lang.Object o)
The overridden equals method.

Parameters:
o - the other object
Returns:
boolean


Copyright (c) 2002-2004 The AspectWerkz Team. All Rights Reserved.