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

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