| |
|
| java.lang.Object ch.ethz.prose.engine.JoinPointRequest
All known Subclasses: ch.ethz.prose.engine.ExceptionThrowRequest, ch.ethz.prose.engine.MethodExitRequest, ch.ethz.prose.engine.FieldAccessRequest, ch.ethz.prose.engine.MethodEntryRequest, ch.ethz.prose.engine.FieldModificationRequest, ch.ethz.prose.engine.ExceptionCatchRequest, ch.ethz.prose.engine.ConstructorRequest, ch.ethz.prose.engine.MethodRedefineRequest,
JoinPointRequest | abstract public class JoinPointRequest (Code) | | Abstract class JoinPointRequest represents a request for some execution
event (reaching a joinpoint) inside a virtual machine. The request will serve
as key to a hashtable managed by JoinPointManager .
This hashtable maps joinpoints (JoinPointRequest ) to
lists of listeners (JoinPointListeners ).
version: $Revision: 1.2 $ author: Andrei Popovici |
Method Summary | |
abstract protected void | clearWatch() Clears the watch in the underlzing jvmai-system. | public void | disableJoinPoint() Disable the notification of joinpoint-events which have
the a signature equal to this request. | public void | enableJoinPoint(Object listeners) Enables notification of joinpoint-events which have a
signature equal to this request. | abstract public boolean | equals(Object other) Every subclass of JoinPointRequest must provide an
implementation for this method in order to be used as key to the
hashtable administrated by the JoinPointManager . | abstract public String | getKind() | abstract public int | getMask() | abstract public int | hashCode() Every subclass of JoinPointRequest must provide an
implementation for this method in order to be used as key to the
hashtable administrated by the JoinPointManager . | abstract protected void | setWatch(Object listeners) Sets the watch in the underlzing jvmai-system. |
JoinPointRequest | protected JoinPointRequest(JoinPointManager o)(Code) | | Constructor.
Parameters: o - Reference to the owner (join point manager)of this request |
JoinPointRequest | protected JoinPointRequest()(Code) | | |
clearWatch | abstract protected void clearWatch()(Code) | | Clears the watch in the underlzing jvmai-system. This method has to
be implemented by subclasses of JoinPointRequest .
It will be called only by disableJoinPoint() .
|
disableJoinPoint | public void disableJoinPoint()(Code) | | Disable the notification of joinpoint-events which have
the a signature equal to this request. This method will delete
the watch and the associated aop-tag in the underlying jvmai-system.
|
enableJoinPoint | public void enableJoinPoint(Object listeners)(Code) | | Enables notification of joinpoint-events which have a
signature equal to this request. This method will instruct the
jvmai-system to set a watch on the joinpoin denoted by this request.
Successive calls to this method without disabling the joinpoint will
be recognized and dropped.
Parameters: listeners - List of JoinPointListener s. This list willbe registered as the aop-tag of the watch set here. When a joinpoint-eventhas occured, JoinPointManager will receive this aop-tag as partof the JoinPoint -object. The content of this tag will be castedto a list and all JoinPointListener included will be notified.Important: Allways use the same list of JoinPointListener forthe same joinpoint! Remember that the instance has been registered as the aop-tag.If you create a new list and try to enable the same joinpoint with the new list,the call to this method will be dropped and the new list won't be registered.To insert a new list, first disable the joinpoint (this will delete the associatedaop-tag) and reenable it then with the new list. |
equals | abstract public boolean equals(Object other)(Code) | | Every subclass of JoinPointRequest must provide an
implementation for this method in order to be used as key to the
hashtable administrated by the JoinPointManager .
|
getMask | abstract public int getMask()(Code) | | |
hashCode | abstract public int hashCode()(Code) | | Every subclass of JoinPointRequest must provide an
implementation for this method in order to be used as key to the
hashtable administrated by the JoinPointManager .
|
setWatch | abstract protected void setWatch(Object listeners)(Code) | | Sets the watch in the underlzing jvmai-system. This method has to
be implemented by subclasses of JoinPointRequest .
It will be called only by enableJoinPoint(List listeners) .
|
|
|
|