1 package freemarker.debug.impl; 2 3 import java.rmi.RemoteException ; 4 import java.rmi.server.UnicastRemoteObject ; 5 import java.util.Collection ; 6 import java.util.List ; 7 8 import freemarker.debug.Breakpoint; 9 import freemarker.debug.Debugger; 10 import freemarker.debug.DebuggerListener; 11 12 16 class RmiDebuggerImpl 17 extends 18 UnicastRemoteObject 19 implements 20 Debugger 21 { 22 private final RmiDebuggerService service; 23 24 protected RmiDebuggerImpl(RmiDebuggerService service) throws RemoteException 25 { 26 this.service = service; 27 } 28 29 public void addBreakpoint(Breakpoint breakpoint) 30 { 31 service.addBreakpoint(breakpoint); 32 } 33 34 public Object addDebuggerListener(DebuggerListener listener) 35 { 36 return service.addDebuggerListener(listener); 37 } 38 39 public List getBreakpoints() 40 { 41 return service.getBreakpointsSpi(); 42 } 43 44 public List getBreakpoints(String templateName) 45 { 46 return service.getBreakpointsSpi(templateName); 47 } 48 49 public Collection 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 id) 60 { 61 service.removeDebuggerListener(id); 62 } 63 64 public void removeBreakpoints() 65 { 66 service.removeBreakpoints(); 67 } 68 69 public void removeBreakpoints(String templateName) 70 { 71 service.removeBreakpoints(templateName); 72 } 73 } 74 | Popular Tags |