|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.aspectwerkz.joinpoint.AbstractJoinPoint
org.codehaus.aspectwerkz.joinpoint.MethodJoinPoint
Matches well defined point of execution in the program where a
method is executed.
Stores meta data from the join point.
I.e. a reference to original object an method, the parameters to A
the result from the original method invocation etc.
Handles the invocation of the advices added to the join point.
Constructor Summary | |
MethodJoinPoint(java.lang.String uuid,
int methodId,
java.lang.String controllerClass)
Creates a new MethodJoinPoint object. |
Method Summary | |
java.lang.String |
createAdviceNotCorrectlyMappedMessage()
Creates an advices not correctly mapped message. |
java.util.List |
getCFlowExpressions()
Returns the cflow expressions. |
java.lang.reflect.Method |
getMethod()
Returns the original method. |
int |
getMethodId()
Returns the internal method id. |
MethodMetaData |
getMethodMetaData()
Returns the method meta-data. |
java.lang.String |
getMethodName()
Returns the method name of the original invocation. |
java.lang.reflect.Method |
getOriginalMethod()
Returns the original method. |
java.lang.Object[] |
getParameters()
Returns the parameters from the original invocation. |
java.lang.Class[] |
getParameterTypes()
Returns the parameter types from the original invocation. |
ExecutionPointcut[] |
getPointcuts()
Returns the method pointcuts. |
java.lang.reflect.Method |
getProxyMethod()
Returns the proxy method. |
java.lang.Object |
getResult()
Returns the result from the original invocation. |
java.lang.Class |
getReturnType()
Returns the return type from the original invocation. |
System |
getSystem()
Returns the AspectWerkz system. |
java.lang.Class |
getTargetClass()
Returns the target class. |
abstract java.lang.Object |
getTargetInstance()
Returns the target instance. |
java.lang.String |
getUuid()
Returns the UUID for the AspectWerkz system. |
int |
hashCode()
|
java.lang.Object |
invokeOriginalMethod()
Invokes the origignal method. |
java.lang.Object |
proceed()
Walks through the pointcuts and invokes all its advices. |
java.lang.Object |
proceedInNewThread()
To be called instead of proceed() when a new thread is spawned. |
void |
setCFlowExpressions(java.util.List expressions)
Sets the cflow expressions (overwrites the old ones) |
void |
setParameters(java.lang.Object[] parameters)
Sets the parameters. |
void |
setPointcuts(ExecutionPointcut[] pointcuts)
Sets the method pointcuts (overwrites the old ones). |
void |
setResult(java.lang.Object result)
Sets the result. |
java.lang.String |
toString()
|
Methods inherited from class org.codehaus.aspectwerkz.joinpoint.AbstractJoinPoint |
getAttribute |
Methods inherited from class java.lang.Object |
equals, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MethodJoinPoint(java.lang.String uuid, int methodId, java.lang.String controllerClass)
uuid
- the UUID for the AspectWerkz system to usemethodId
- the id of the methodcontrollerClass
- the class name of the controller class to useMethod Detail |
public System getSystem()
public void setPointcuts(ExecutionPointcut[] pointcuts)
pointcuts
- the method pointcutspublic ExecutionPointcut[] getPointcuts()
public java.util.List getCFlowExpressions()
public void setCFlowExpressions(java.util.List expressions)
expressions
- the cflow expressionspublic MethodMetaData getMethodMetaData()
public int getMethodId()
public java.lang.reflect.Method getOriginalMethod()
public java.lang.String getUuid()
public abstract java.lang.Object getTargetInstance()
public java.lang.Class getTargetClass()
public java.lang.reflect.Method getMethod()
public java.lang.reflect.Method getProxyMethod()
public java.lang.String getMethodName()
public java.lang.Object[] getParameters()
public java.lang.Class[] getParameterTypes()
public java.lang.Class getReturnType()
public java.lang.Object getResult()
public void setResult(java.lang.Object result)
result
- the result as an objectpublic void setParameters(java.lang.Object[] parameters)
parameters
- the parameters as a list of objectspublic java.lang.Object proceed() throws java.lang.Throwable
java.lang.Throwable
public java.lang.Object proceedInNewThread() throws java.lang.Throwable
java.lang.Throwable
public java.lang.Object invokeOriginalMethod() throws java.lang.Throwable
java.lang.Throwable
- the exception from the original methodpublic java.lang.String createAdviceNotCorrectlyMappedMessage()
public java.lang.String toString()
public int hashCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |