org.codehaus.aspectwerkz.joinpoint
Class StaticMethodJoinPoint

java.lang.Object
  extended byorg.codehaus.aspectwerkz.joinpoint.AbstractJoinPoint
      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 and method, the parameters to and 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
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 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

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

getTargetInstance

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

Specified by:
getTargetInstance in interface JoinPoint
Specified by:
getTargetInstance 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.