|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.osgi.framework.internal.core.OSGi
public class OSGi
Main class for the OSGi framework. This class is used to start the framework for production use. Objects of this class represent an instance of the OSGi framework and can be used to control the framework.
Field Summary | |
---|---|
protected Framework |
framework
|
Constructor Summary | |
---|---|
OSGi(FrameworkAdaptor adaptor)
Constructs an OSGi object with the specified FrameworkAdaptor. |
Method Summary | |
---|---|
void |
close()
Destroy the OSGi framework. |
protected Framework |
createFramework(FrameworkAdaptor adaptor)
Create the internal framework object. |
protected void |
displayBanner()
Display the banner to System.out. |
BundleContext |
getBundleContext()
Retrieve the BundleContext for the system bundle. |
boolean |
isActive()
This method returns the state of the OSGi framework. |
void |
launch()
Start the framework. |
void |
shutdown()
Stop the framework. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Framework framework
Constructor Detail |
---|
public OSGi(FrameworkAdaptor adaptor)
adaptor
- An adaptor object for the framework to use.Method Detail |
---|
public void close()
public void launch()
public void shutdown()
public boolean isActive()
public BundleContext getBundleContext()
protected Framework createFramework(FrameworkAdaptor adaptor)
adaptor
- FrameworkAdaptor object for the framework.
protected void displayBanner()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |