livespace.osgi.bootstrap
Class MainThread

java.lang.Object
  extended by livespace.osgi.bootstrap.MainThread

public class MainThread
extends Object

API for clients to access the OSGi system's main thread. The bootstrap code cedes control to this after booting OSGi. This hook exists primarily for use by the SWT bundle which, for many platforms such as Mac OS X, needs to execute its event loop on the VM's main thread. NOTE: On Mac OS X the VM must be started with -XstartOnFirstThread for this to work.

Author:
Matthew Phillips

Constructor Summary
MainThread()
           
 
Method Summary
static void execute(Runnable runnable)
          Set code to run on the main thread post-bootstrap.
static void postBootstrapStart()
          Called by bootstrap code after OSGi has started to begin execution the post-bootstrap runnable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MainThread

public MainThread()
Method Detail

execute

public static void execute(Runnable runnable)
Set code to run on the main thread post-bootstrap.


postBootstrapStart

public static void postBootstrapStart()
Called by bootstrap code after OSGi has started to begin execution the post-bootstrap runnable.



Copyright © 2008 Commonwealth of Australia