org.codehaus.aspectwerkz.joinpoint
Class StaticMethodJoinPoint

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

public class StaticMethodJoinPoint
extends MethodJoinPoint

Mathes well defined point of execution in the program where a static method is executed.
Stores meta data from the join point. I.e. a reference to original object A method, the parameters to A the result from the original method invocation etc.
Handles the invocation of the advices added to the join point.

Author:
Jonas Bonér
See Also:
Serialized Form

Constructor Summary
StaticMethodJoinPoint(java.lang.String uuid, java.lang.Class targetClass, 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 getTargetObject()
          Returns the original object.
 int hashCode()
          Overrides hashCode.
 
Methods inherited from class org.codehaus.aspectwerkz.joinpoint.MethodJoinPoint
createAdviceNotCorrectlyMappedMessage, getCFlowPointcuts, getMethod, getMethodId, getMethodMetaData, getMethodName, getOriginalMethod, getParameters, getParameterTypes, getPointcuts, getResult, getReturnType, getSystem, getTargetClass, getUuid, invokeOriginalMethod, proceed, proceedInNewThread, setCFlowPointcuts, setParameters, setPointcuts, setResult, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StaticMethodJoinPoint

public StaticMethodJoinPoint(java.lang.String uuid,
                             java.lang.Class targetClass,
                             int methodId,
                             java.lang.String controllerClass)
Creates a new MemberMethodJoinPoint object.

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

getTargetObject

public java.lang.Object getTargetObject()
Returns the original object. Always returns null since it is a static join point.

Specified by:
getTargetObject in interface JoinPoint
Specified by:
getTargetObject in class MethodJoinPoint
Returns:
null always returns null

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.