|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 |
getCFlowPointcuts()
Returns the cflow pointcuts. |
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. |
MethodPointcut[] |
getPointcuts()
Returns the method pointcuts. |
java.lang.Object |
getResult()
Returns the result from the original invocation. |
java.lang.Class |
getReturnType()
Returns the return type from the original invocation. |
AspectWerkz |
getSystem()
Returns the AspectWerkz system. |
java.lang.Class |
getTargetClass()
Returns the original class. |
abstract java.lang.Object |
getTargetObject()
Returns the original object. |
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 |
setCFlowPointcuts(java.util.List pointcuts)
Sets the cflow pointcuts (overwrites the old ones) |
void |
setParameters(java.lang.Object[] parameters)
Sets the parameters. |
void |
setPointcuts(MethodPointcut[] 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 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 AspectWerkz getSystem()
public void setPointcuts(MethodPointcut[] pointcuts)
pointcuts
- the method pointcutspublic MethodPointcut[] getPointcuts()
public java.util.List getCFlowPointcuts()
public void setCFlowPointcuts(java.util.List pointcuts)
pointcuts
- the cflow pointcutspublic MethodMetaData getMethodMetaData()
public int getMethodId()
public java.lang.reflect.Method getOriginalMethod()
public java.lang.String getUuid()
public abstract java.lang.Object getTargetObject()
getTargetObject
in interface JoinPoint
public java.lang.Class getTargetClass()
getTargetClass
in interface JoinPoint
public java.lang.reflect.Method getMethod()
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
proceed
in interface JoinPoint
java.lang.Throwable
public java.lang.Object proceedInNewThread() throws java.lang.Throwable
proceedInNewThread
in interface JoinPoint
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 |