Package org.nuxeo.osgi
Class OSGiAdapter
java.lang.Object
org.nuxeo.osgi.OSGiAdapter
- Direct Known Subclasses:
StandaloneApplication
- Author:
- Bogdan Stefanescu
-
Field Summary
Modifier and TypeFieldDescriptionprotected BundleIdGenerator
protected ListenerList
protected final File
protected ListenerList
protected File
protected Properties
protected BundleRegistry
protected ListenerList
protected SystemBundle
protected final File
-
Constructor Summary
ConstructorDescriptionOSGiAdapter
(File workingDir) OSGiAdapter
(File workingDir, File dataDir, Properties properties) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addBundleListener
(org.osgi.framework.BundleListener listener) void
addFrameworkListener
(org.osgi.framework.FrameworkListener listener) void
addServiceListener
(org.osgi.framework.ServiceListener listener) void
addServiceListener
(org.osgi.framework.ServiceListener listener, String filter) void
fireBundleEvent
(org.osgi.framework.BundleEvent event) void
fireFrameworkEvent
(org.osgi.framework.FrameworkEvent event) void
fireServiceEvent
(org.osgi.framework.ServiceEvent event) long
getBundleId
(String symbolicName) getProperty
(String key) getProperty
(String key, String defvalue) org.osgi.framework.Bundle
protected void
initialize
(Properties properties) void
install
(BundleImpl bundle) void
removeBundleListener
(org.osgi.framework.BundleListener listener) void
removeFrameworkListener
(org.osgi.framework.FrameworkListener listener) void
removeService
(String clazz) void
removeServiceListener
(org.osgi.framework.ServiceListener listener) void
setProperty
(String name, String value) void
setSystemBundle
(SystemBundle systemBundle) void
shutdown()
void
uninstall
(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()
-