Home » freemarker-2.3.13 » freemarker.debug.impl » [javadoc | source]

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

Home » freemarker-2.3.13 » freemarker.debug.impl » [javadoc | source]