|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dsrg.sofa.osgi.Framework
public class Framework
The OSGi Framework wrapper
This class respresents the embedded OSGi Framework. It uses the Apache Felix as the Framework implementation.
Method Summary | |
---|---|
RegistrationListener |
addRegistrationListener(java.lang.String bundle,
RegistrationListener listener)
Adds a RegistrationListener |
java.lang.Object |
clone()
clone method, prevents cloning |
org.osgi.framework.BundleContext |
getContext()
Get the execution context |
static Framework |
getInstance()
Return the singleton Framework instance |
RegistrationListener |
getRegistrationListener(java.lang.String bundle)
Get a RegistrationListener for a bundle name |
RegistrationListener |
removeRegistrationListener(java.lang.String bundle)
Remove a RegistrationListener for a bundle name |
void |
shutdown()
Shuts down the embedded OSGi Framework |
boolean |
startup()
Starts an embedded OSGi Framework |
boolean |
startup(org.osgi.framework.BundleActivator[] activators)
Starts an embedded OSGi Framework |
java.lang.String |
toString()
toString method |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static Framework getInstance()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public boolean startup()
public boolean startup(org.osgi.framework.BundleActivator[] activators)
activators
- list of activators
public void shutdown()
public org.osgi.framework.BundleContext getContext()
public RegistrationListener addRegistrationListener(java.lang.String bundle, RegistrationListener listener)
bundle
- bundle namelistener
- RegistrationListener bundle
public RegistrationListener getRegistrationListener(java.lang.String bundle)
bundle
- bundle name
public RegistrationListener removeRegistrationListener(java.lang.String bundle)
bundle
- bundle name
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |