home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 1999 April / DPPCPRO0499.ISO / April / Notes / 50b2wic.exe / DATA1.CAB / NotesProgramFilesJavaSupport / Notes.jar / lotus / notes / DebugAgentBase.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-11-15  |  1.2 KB  |  32 lines

  1. package lotus.notes;
  2.  
  3. public class DebugAgentBase extends AgentBase {
  4.    private DebugSession debugSession;
  5.    private String agentClassName;
  6.  
  7.    public Session getSession() {
  8.       if (this.debugSession != null) {
  9.          return this.debugSession;
  10.       } else {
  11.          try {
  12.             this.agentClassName = this.getClass().getName();
  13.             Session var1 = super.getSession();
  14.             AgentContext var2 = var1.getAgentContext();
  15.             new DebugSession(var2, this.agentClassName);
  16.          } catch (Exception var3) {
  17.             ((Throwable)var3).printStackTrace();
  18.          }
  19.  
  20.          return null;
  21.       }
  22.    }
  23.  
  24.    public void initAgentRunner(String var1, String var2, String var3) throws NotesException {
  25.       this.debugSession = new DebugSession(var1, var2, var3);
  26.    }
  27.  
  28.    public void termAgentRunner() throws NotesException {
  29.       this.debugSession.stampAgentContextDoc();
  30.    }
  31. }
  32.