View Javadoc

1   package org.sourceforge.jemm.lifecycle;
2   
3   /**
4    * A Listener for all JEMMObject events to do with methods.
5    * 
6    * @author Paul Keeble
7    * 
8    */
9   public interface MethodListener {
10  	/**
11  	 * Acquires a synchronisation lock on an object.
12  	 * 
13  	 * @param e
14  	 */
15  	void beginLock(LockEvent e);
16  	
17  	/**
18  	 * Releases a synchronisation lock on an object.
19  	 * 
20  	 * @param e
21  	 */
22  	void endLock(LockEvent e);
23  	
24  	/**
25  	 * Called when an Object is entered.
26  	 * 
27  	 * @param e
28  	 *            The event
29  	 */
30  	void entityEntered(MethodEvent e);
31  	
32  	/**
33  	 * Called when an Object is exited
34  	 * 
35  	 * @param e
36  	 *            The event
37  	 */
38  	void entityExited(MethodEvent e);
39  }