org.nuxeo.osgi
Class OSGiAdapter
java.lang.Object
org.nuxeo.osgi.OSGiAdapter
- Direct Known Subclasses:
- StandaloneApplication
public class OSGiAdapter
- extends java.lang.Object
- Author:
- Bogdan Stefanescu
Constructor Summary |
OSGiAdapter(java.io.File workingDir)
|
OSGiAdapter(java.io.File workingDir,
java.io.File dataDir,
java.util.Properties properties)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OSGiAdapter
public OSGiAdapter(java.io.File workingDir)
OSGiAdapter
public OSGiAdapter(java.io.File workingDir,
java.io.File dataDir,
java.util.Properties properties)
setSystemBundle
public void setSystemBundle(SystemBundle systemBundle)
throws org.osgi.framework.BundleException
- Throws:
org.osgi.framework.BundleException
getRegistry
public BundleRegistry getRegistry()
getProperty
public java.lang.String getProperty(java.lang.String key)
getProperty
public java.lang.String getProperty(java.lang.String key,
java.lang.String defvalue)
setProperty
public void setProperty(java.lang.String name,
java.lang.String value)
- Parameters:
name
- the property name.value
- the property value.
shutdown
public void shutdown()
throws java.io.IOException
- Throws:
java.io.IOException
getBundleId
public long getBundleId(java.lang.String symbolicName)
getWorkingDir
public java.io.File getWorkingDir()
getDataDir
public java.io.File getDataDir()
getInstalledBundles
public BundleImpl[] getInstalledBundles()
install
public void install(BundleImpl bundle)
throws org.osgi.framework.BundleException
- Throws:
org.osgi.framework.BundleException
uninstall
public void uninstall(BundleImpl bundle)
throws org.osgi.framework.BundleException
- 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
public void addServiceListener(org.osgi.framework.ServiceListener listener,
java.lang.String filter)
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()
Copyright © 2010 Nuxeo SAS. All Rights Reserved.