Package org.nuxeo.osgi
Class OSGiAdapter
java.lang.Object
org.nuxeo.osgi.OSGiAdapter
- Direct Known Subclasses:
StandaloneApplication
- Author:
- Bogdan Stefanescu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BundleIdGeneratorprotected ListenerListprotected final Fileprotected ListenerListprotected Fileprotected Propertiesprotected BundleRegistryprotected ListenerListprotected SystemBundleprotected final File -
Constructor Summary
ConstructorsConstructorDescriptionOSGiAdapter(File workingDir) OSGiAdapter(File workingDir, File dataDir, Properties properties) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBundleListener(org.osgi.framework.BundleListener listener) voidaddFrameworkListener(org.osgi.framework.FrameworkListener listener) voidaddServiceListener(org.osgi.framework.ServiceListener listener) voidaddServiceListener(org.osgi.framework.ServiceListener listener, String filter) voidfireBundleEvent(org.osgi.framework.BundleEvent event) voidfireFrameworkEvent(org.osgi.framework.FrameworkEvent event) voidfireServiceEvent(org.osgi.framework.ServiceEvent event) longgetBundleId(String symbolicName) getProperty(String key) getProperty(String key, String defvalue) org.osgi.framework.Bundleprotected voidinitialize(Properties properties) voidinstall(BundleImpl bundle) voidremoveBundleListener(org.osgi.framework.BundleListener listener) voidremoveFrameworkListener(org.osgi.framework.FrameworkListener listener) voidremoveService(String clazz) voidremoveServiceListener(org.osgi.framework.ServiceListener listener) voidsetProperty(String name, String value) voidsetSystemBundle(SystemBundle systemBundle) voidshutdown()voiduninstall(BundleImpl bundle)
-
Field Details
-
workingDir
-
dataDir
-
idTableFile
-
bundleIds
-
frameworkListeners
-
bundleListeners
-
serviceListeners
-
services
-
registry
-
properties
-
systemBundle
-
-
Constructor Details
-
OSGiAdapter
-
OSGiAdapter
-
-
Method Details
-
removeService
-
initialize
-
setSystemBundle
- Throws:
org.osgi.framework.BundleException
-
getRegistry
-
getProperty
-
getProperty
-
setProperty
- Parameters:
name- the property name.value- the property value.
-
shutdown
- Throws:
IOException
-
getBundleId
-
getWorkingDir
-
getDataDir
-
getBundle
-
getInstalledBundles
-
install
- Throws:
org.osgi.framework.BundleException
-
uninstall
- Throws:
org.osgi.framework.BundleException
-
addFrameworkListener
public void addFrameworkListener(org.osgi.framework.FrameworkListener listener) -
removeFrameworkListener
public void removeFrameworkListener(org.osgi.framework.FrameworkListener listener) -
addServiceListener
public void addServiceListener(org.osgi.framework.ServiceListener listener) -
addServiceListener
-
removeServiceListener
public void removeServiceListener(org.osgi.framework.ServiceListener listener) -
addBundleListener
public void addBundleListener(org.osgi.framework.BundleListener listener) -
removeBundleListener
public void removeBundleListener(org.osgi.framework.BundleListener listener) -
fireFrameworkEvent
public void fireFrameworkEvent(org.osgi.framework.FrameworkEvent event) -
fireServiceEvent
public void fireServiceEvent(org.osgi.framework.ServiceEvent event) -
fireBundleEvent
public void fireBundleEvent(org.osgi.framework.BundleEvent event) -
getSystemBundle
public org.osgi.framework.Bundle getSystemBundle()
-