Class JAddin

java.lang.Object
  extended by java.lang.Thread
      extended by lotus.domino.NotesThread
          extended by lotus.notes.addins.JavaServerAddin
              extended by JAddin
All Implemented Interfaces:
java.lang.Runnable

public final class JAddin
extends lotus.notes.addins.JavaServerAddin

This JAddin class is a framework used to create Lotus Domino server addin tasks. The code running in this thread should avoid any long-running or blocking code to prohibit delays in processing of the Domino message queue.

Version:
1.2.0 - 18/Dec/2013
Author:
ABData, Andy Brunner
See Also:
Homepage of JAddin

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class lotus.notes.addins.JavaServerAddin
LOG_AUTO_CLEARS, LOG_DONT_CREATE_DDM_ENTRY, LOG_TO_EVENT_NO_CONSOLE, MSG_Q_PREFIX, NOERROR, ST_ADDITIVE, ST_UNIQUE, VT_LONG, VT_NUMBER, VT_TEXT, VT_TIMEDATE
 
Fields inherited from class lotus.domino.NotesThread
dummyObj, isLoaded
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
JAddin()
          This constructor is called by the Domino's RunJava task if no arguments are specified (e.g.
JAddin(java.lang.String[] args)
          This constructor is called by the Domino's RunJava task if command line arguments are specified (e.g.
 
Method Summary
 void finalize()
          This method is called by the Java runtime during garbage collection to free all resources owned by this object.
 void runNotes()
          This method is called by the Domino's RunJava task as the main entry point.
 
Methods inherited from class lotus.notes.addins.JavaServerAddin
AddInLogErrorText, AddInLogErrorText, LogDDMEvent, shouldTerminate, StatDelete, stopAddin
 
Methods inherited from class lotus.domino.NotesThread
initThread, run, sinitThread, stermThread, termThread
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JAddin

public JAddin()
This constructor is called by the Domino's RunJava task if no arguments are specified (e.g. "Load RunJava JAddin").


JAddin

public JAddin(java.lang.String[] args)
This constructor is called by the Domino's RunJava task if command line arguments are specified (e.g. "Load RunJava JAddin HelloWorld").

Parameters:
args - Command line arguments
Method Detail

runNotes

public final void runNotes()
This method is called by the Domino's RunJava task as the main entry point. Since it executes under the main JAddin Domino server thread, this method creates a subthread based on JAddinThread running the user code.

Overrides:
runNotes in class lotus.domino.NotesThread

finalize

public void finalize()
This method is called by the Java runtime during garbage collection to free all resources owned by this object.

Overrides:
finalize in class lotus.domino.NotesThread