01: package freemarker.debug.impl;
02:
03: import java.rmi.RemoteException;
04: import java.rmi.server.UnicastRemoteObject;
05: import java.util.Collection;
06: import java.util.List;
07:
08: import freemarker.debug.Breakpoint;
09: import freemarker.debug.Debugger;
10: import freemarker.debug.DebuggerListener;
11:
12: /**
13: * @author Attila Szegedi
14: * @version $Id: RmiDebuggerImpl.java,v 1.2.2.1 2006/11/27 07:54:49 szegedia Exp $
15: */
16: class RmiDebuggerImpl extends UnicastRemoteObject implements Debugger {
17: private static final long serialVersionUID = 1L;
18:
19: private final RmiDebuggerService service;
20:
21: protected RmiDebuggerImpl(RmiDebuggerService service)
22: throws RemoteException {
23: this .service = service;
24: }
25:
26: public void addBreakpoint(Breakpoint breakpoint) {
27: service.addBreakpoint(breakpoint);
28: }
29:
30: public Object addDebuggerListener(DebuggerListener listener) {
31: return service.addDebuggerListener(listener);
32: }
33:
34: public List getBreakpoints() {
35: return service.getBreakpointsSpi();
36: }
37:
38: public List getBreakpoints(String templateName) {
39: return service.getBreakpointsSpi(templateName);
40: }
41:
42: public Collection getSuspendedEnvironments() {
43: return service.getSuspendedEnvironments();
44: }
45:
46: public void removeBreakpoint(Breakpoint breakpoint) {
47: service.removeBreakpoint(breakpoint);
48: }
49:
50: public void removeDebuggerListener(Object id) {
51: service.removeDebuggerListener(id);
52: }
53:
54: public void removeBreakpoints() {
55: service.removeBreakpoints();
56: }
57:
58: public void removeBreakpoints(String templateName) {
59: service.removeBreakpoints(templateName);
60: }
61: }
|