KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > freemarker > debug > impl > RmiDebuggerImpl


1 package freemarker.debug.impl;
2
3 import java.rmi.RemoteException JavaDoc;
4 import java.rmi.server.UnicastRemoteObject JavaDoc;
5 import java.util.Collection JavaDoc;
6 import java.util.List JavaDoc;
7
8 import freemarker.debug.Breakpoint;
9 import freemarker.debug.Debugger;
10 import freemarker.debug.DebuggerListener;
11
12 /**
13  * @author Attila Szegedi
14  * @version $Id: RmiDebuggerImpl.java,v 1.2 2004/09/09 15:20:37 szegedia Exp $
15  */

16 class RmiDebuggerImpl
17 extends
18     UnicastRemoteObject JavaDoc
19 implements
20     Debugger
21 {
22     private final RmiDebuggerService service;
23     
24     protected RmiDebuggerImpl(RmiDebuggerService service) throws RemoteException JavaDoc
25     {
26         this.service = service;
27     }
28
29     public void addBreakpoint(Breakpoint breakpoint)
30     {
31         service.addBreakpoint(breakpoint);
32     }
33
34     public Object JavaDoc addDebuggerListener(DebuggerListener listener)
35     {
36         return service.addDebuggerListener(listener);
37     }
38
39     public List JavaDoc getBreakpoints()
40     {
41         return service.getBreakpointsSpi();
42     }
43
44     public List JavaDoc getBreakpoints(String JavaDoc templateName)
45     {
46         return service.getBreakpointsSpi(templateName);
47     }
48
49     public Collection JavaDoc getSuspendedEnvironments()
50     {
51         return service.getSuspendedEnvironments();
52     }
53
54     public void removeBreakpoint(Breakpoint breakpoint)
55     {
56         service.removeBreakpoint(breakpoint);
57     }
58
59     public void removeDebuggerListener(Object JavaDoc id)
60     {
61         service.removeDebuggerListener(id);
62     }
63
64     public void removeBreakpoints()
65     {
66         service.removeBreakpoints();
67     }
68
69     public void removeBreakpoints(String JavaDoc templateName)
70     {
71         service.removeBreakpoints(templateName);
72     }
73 }
74
Popular Tags