|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.emp.mtp.jcics.ProgramInitiator
This class exists to be the interface from the unikix tran processor into initiating a Java Program.
It is a singleton model, and the single instance is obtained using the getInstance() method.
Method Summary | |
void |
dumpException(java.lang.Throwable t)
This method prints a throwable to System.err. |
java.lang.Class |
getClass(java.lang.String className,
java.lang.String environment)
This method obtains the Class object comes from the supplied environment. |
static ProgramInitiator |
getInstance()
Get hold of the singleton instance of this class |
java.lang.reflect.Method |
getMainMethod(java.lang.String className,
java.lang.String environment)
This method obtains the Method object that corresponds to the entry point of a User application. |
void |
invokeMainMethod(java.lang.reflect.Method method,
CommAreaHolder commArea)
This method calls the main Method of a users class. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Method Detail |
public static ProgramInitiator getInstance()
public java.lang.Class getClass(java.lang.String className, java.lang.String environment) throws java.lang.ClassNotFoundException
It is passed a string which is the 'environment' in which to run. This is important since this code will create a separate class loader for each different 'environment' that ever gets passed in.
className
- The name of the class to load.environment
- A string containing the URLs that contain the
classes available to the required class. This should be a 'native'
format class type string.public java.lang.reflect.Method getMainMethod(java.lang.String className, java.lang.String environment) throws java.lang.ClassNotFoundException, java.lang.NoSuchMethodException
It is passed a string which is the 'environment' in which to run. This is important since this code will create a separate class loader for each different 'environment' that ever gets passed in.
className
- The name of the class to load.environment
- A string containing the URLs that contain the
classes available to the required class. This should be a 'native'
format class type string.public void invokeMainMethod(java.lang.reflect.Method method, CommAreaHolder commArea) throws java.lang.Throwable
method
- The main method as returned by getMainMethod().commArea
- The commarea to be passed to the method.public void dumpException(java.lang.Throwable t)
It should actually put it to unikixmain.err. This needs looking into.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |