home *** CD-ROM | disk | FTP | other *** search
- package lotus.domino;
-
- import lotus.domino.local.AgentContext;
- import lotus.domino.local.DebugSession;
-
- public class DebugAgentBase extends AgentBase {
- private DebugSession debugSession;
- private String agentClassName;
-
- public Session getSession() {
- if (this.debugSession != null) {
- return this.debugSession;
- } else {
- try {
- this.agentClassName = this.getClass().getName();
- Session var1 = super.getSession();
- AgentContext var2 = (AgentContext)var1.getAgentContext();
- new DebugSession(var2, this.agentClassName);
- } catch (Exception var3) {
- ((Throwable)var3).printStackTrace();
- }
-
- return null;
- }
- }
-
- public void initAgentRunner(String var1, String var2, String var3) throws NotesException {
- this.debugSession = new DebugSession(var1, var2, var3);
- }
-
- public void termAgentRunner() throws NotesException {
- this.debugSession.stampAgentContextDoc();
- }
- }
-