org.safs.jvmagent
Class Agent

java.lang.Object
  |
  +--org.safs.JavaHook
        |
        +--org.safs.jvmagent.Agent

public class Agent
extends JavaHook

org.safs.jvmagent.Agent This class represents our Assistive Technologies Agent in enabled Java JVMs. It will poll for and register with STAF, initialize our own TopLevelWindowListeners, and wait for instructions of what it should do. Currently, it is a running empty stub.


Inner Class Summary
protected  class Agent.STAFWatch
          Simply monitors for the existence or appearance of STAF and then registers as a STAF client once STAF is available.
 class Agent.TopLevelListener
          Currently just a stub TopLevelWindowListener for proof-of-concept
 
Field Summary
static java.lang.String AGENT_NAME
          The process name by which all JVM Agents will be registered.
static java.lang.String LOCAL_AGENT_HANDLE
          'safs.jvmagent.handle' This is the System property which will hold the STAF handle # once we have successfully registered with STAF.
 
Fields inherited from class org.safs.JavaHook
data, DEBUG_MESSAGE, errorText, FAILED_MESSAGE, FAILED_OK_MESSAGE, GENERIC_ERROR, GENERIC_MESSAGE, helper, log, PASSED_MESSAGE, process_name, processor, REQUEST_PROCEED_TESTING, REQUEST_USER_STOPPED_SCRIPT_REQUEST, semaphore_name, SHUTDOWN_RECORD, STAF_ERROR, trd_name, utils, WARNING_MESSAGE, WARNING_OK_MESSAGE
 
Constructor Summary
Agent()
          Constructor for SAFSJVMAgent.
 
Method Summary
 DDGUIUtilities getGUIUtilities()
          Retrieve the DDGUIUtilities used by the subclass.
 LogUtilities getLogUtilities()
          Retrieve the LogUtilities used by the subclass.
 ProcessRequest getRequestProcessor()
          Retrieve the ProcessRequest instance used by the subclass.
 TestRecordHelper getTRDData()
          Retrieve the TestRecordHelper used by the subclass.
 
Methods inherited from class org.safs.JavaHook
allowSystemExit, evaluateRuntimeException, getHelper, getProcessName, getSemaphoreName, getTRDName, setGUIUtilities, setHelper, setLogUtilities, setProcessName, setRequestProcessor, setSemaphoreName, setTRDData, setTRDName, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AGENT_NAME

public static final java.lang.String AGENT_NAME
The process name by which all JVM Agents will be registered. Each will have a unique handleID, but they will have the same name. This class will use the unique semaphore name derived from AGENT_NAME + handleID for most inter-process communication.

LOCAL_AGENT_HANDLE

public static final java.lang.String LOCAL_AGENT_HANDLE
'safs.jvmagent.handle' This is the System property which will hold the STAF handle # once we have successfully registered with STAF.
Constructor Detail

Agent

public Agent()
Constructor for SAFSJVMAgent.
Method Detail

getLogUtilities

public LogUtilities getLogUtilities()
Description copied from class: JavaHook
Retrieve the LogUtilities used by the subclass. If no LogUtilities has been set (log == null), then the implementation is expected to instantiate and return a LogUtilities instance appropriate for the hook.
Overrides:
getLogUtilities in class JavaHook
See Also:
JavaHook.getLogUtilities()

getTRDData

public TestRecordHelper getTRDData()
Description copied from class: JavaHook
Retrieve the TestRecordHelper used by the subclass. If no TestRecordHelper has been set (data == null), then the implementation is expected to instantiate and return a TestRecordHelper instance appropriate for the hook.
Overrides:
getTRDData in class JavaHook
See Also:
JavaHook.getTRDData()

getGUIUtilities

public DDGUIUtilities getGUIUtilities()
Description copied from class: JavaHook
Retrieve the DDGUIUtilities used by the subclass. If no DDGUIUtilities has been set (utils == null), then the implementation is expected to instantiate and return a DDGUIUtilities instance appropriate for the hook.
Overrides:
getGUIUtilities in class JavaHook
See Also:
JavaHook.getGUIUtilities()

getRequestProcessor

public ProcessRequest getRequestProcessor()
Description copied from class: JavaHook
Retrieve the ProcessRequest instance used by the subclass. If no ProcessRequest has been set (processor == null), then the implementation is expected to instantiate and return a ProcessRequest instance appropriate for the hook.
Overrides:
getRequestProcessor in class JavaHook
See Also:
JavaHook.getRequestProcessor()