org.eclipse.net4j.util.om
Class OSGiApplication

java.lang.Object
  extended by org.eclipse.net4j.util.om.OSGiApplication
All Implemented Interfaces:
IApplication

public class OSGiApplication
extends Object
implements IApplication

A default implementation of an OSGi application.


Field Summary
 
Fields inherited from interface org.eclipse.equinox.app.IApplication
EXIT_OK, EXIT_RELAUNCH, EXIT_RESTART
 
Constructor Summary
OSGiApplication(String applicationID)
           
 
Method Summary
protected  void doStart()
           
protected  void doStop()
           
 IApplicationContext getApplicationContext()
           
 String getApplicationID()
           
 boolean isRunning()
           
 Object start(IApplicationContext context)
           
 void stop()
           
static void traceStart(String applicationID)
           
static void traceStop(String applicationID)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OSGiApplication

public OSGiApplication(String applicationID)
Method Detail

getApplicationID

public String getApplicationID()

getApplicationContext

public IApplicationContext getApplicationContext()

isRunning

public boolean isRunning()

start

public final Object start(IApplicationContext context)
                   throws Exception
Specified by:
start in interface IApplication
Throws:
Exception

stop

public final void stop()
Specified by:
stop in interface IApplication

doStart

protected void doStart()
                throws Exception
Throws:
Exception

doStop

protected void doStop()
               throws Exception
Throws:
Exception

traceStart

public static void traceStart(String applicationID)

traceStop

public static void traceStop(String applicationID)


Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.