Package org.openflexo.pamela.patterns
Class ExecutionMonitor
- java.lang.Object
-
- org.openflexo.pamela.patterns.ExecutionMonitor
-
public abstract class ExecutionMonitor extends java.lang.Object
Interface specifying an execution monitor. Such an entity is notified every time a method is handled by theProxyMethodHandler
.
-
-
Field Summary
Fields Modifier and Type Field Description protected PamelaMetaModel
pamelaMetaModel
-
Constructor Summary
Constructors Constructor Description ExecutionMonitor(PamelaMetaModel context)
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract void
enteringMethod(java.lang.Object instance, java.lang.reflect.Method method, java.lang.Object[] args)
Notification when entering the invoke method of theProxyMethodHandler
.abstract void
leavingMethod(java.lang.Object instance, java.lang.reflect.Method method, java.lang.Object[] args, java.lang.Object returnValue)
Notification when leaving the invoke method of theProxyMethodHandler
.abstract void
throwingException(java.lang.Object instance, java.lang.reflect.Method method, java.lang.Object[] args, java.lang.Exception exception)
Notification when throwing an exception while executing patterns on called method.
-
-
-
Field Detail
-
pamelaMetaModel
protected PamelaMetaModel pamelaMetaModel
-
-
Constructor Detail
-
ExecutionMonitor
public ExecutionMonitor(PamelaMetaModel context)
-
-
Method Detail
-
enteringMethod
public abstract void enteringMethod(java.lang.Object instance, java.lang.reflect.Method method, java.lang.Object[] args)
Notification when entering the invoke method of theProxyMethodHandler
.- Parameters:
instance
- instance on which the method is called.method
- called method.args
- arguments passed to the called method.
-
throwingException
public abstract void throwingException(java.lang.Object instance, java.lang.reflect.Method method, java.lang.Object[] args, java.lang.Exception exception)
Notification when throwing an exception while executing patterns on called method.- Parameters:
instance
- instance on which the method is called.method
- called method.args
- arguments passed to the called method.exception
- exception thrown by the pattern handling.
-
leavingMethod
public abstract void leavingMethod(java.lang.Object instance, java.lang.reflect.Method method, java.lang.Object[] args, java.lang.Object returnValue)
Notification when leaving the invoke method of theProxyMethodHandler
.- Parameters:
instance
- instance on which the method is called.method
- called method.args
- arguments passed to the called method.returnValue
- value about to be returned by the method.
-
-