fabric.worker
Class MainThread

java.lang.Object
  extended by java.lang.Thread
      extended by fabric.worker.MainThread
All Implemented Interfaces:
FabricThread, java.lang.Runnable

public final class MainThread
extends java.lang.Thread
implements FabricThread

The thread in which the Fabric program executes. This is here to ensure that the program executes in a FabricThread.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Nested classes/interfaces inherited from interface fabric.common.FabricThread
FabricThread.AbstractImpl
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Method Summary
 TransactionManager getTransactionManager()
           
static void invoke(Options opts, java.lang.reflect.Method main, java.lang.Object args)
           
 void run()
           
 void setTransactionManager(TransactionManager tm)
           
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

invoke

public static void invoke(Options opts,
                          java.lang.reflect.Method main,
                          java.lang.Object args)
                   throws java.lang.Throwable
Throws:
java.lang.Throwable

getTransactionManager

public final TransactionManager getTransactionManager()
Specified by:
getTransactionManager in interface FabricThread

setTransactionManager

public final void setTransactionManager(TransactionManager tm)
Specified by:
setTransactionManager in interface FabricThread