Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.osgi
Class OSGiAdapter

java.lang.Object
  extended by org.nuxeo.osgi.OSGiAdapter
Direct Known Subclasses:
StandaloneApplication

public class OSGiAdapter
extends Object

Author:
Bogdan Stefanescu

Constructor Summary
OSGiAdapter(File workingDir)
           
OSGiAdapter(File workingDir, File dataDir, Properties properties)
           
 
Method Summary
 void 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)
           
 BundleImpl getBundle(String symbolicName)
           
 long getBundleId(String symbolicName)
           
 File getDataDir()
           
 BundleImpl[] getInstalledBundles()
           
 String getProperty(String key)
           
 String getProperty(String key, String defvalue)
           
 BundleRegistry getRegistry()
           
 org.osgi.framework.Bundle getSystemBundle()
           
 File getWorkingDir()
           
 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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OSGiAdapter

public OSGiAdapter(File workingDir)

OSGiAdapter

public OSGiAdapter(File workingDir,
                   File dataDir,
                   Properties properties)
Method Detail

removeService

public void removeService(String clazz)

setSystemBundle

public void setSystemBundle(SystemBundle systemBundle)
                     throws org.osgi.framework.BundleException
Throws:
org.osgi.framework.BundleException

getRegistry

public BundleRegistry getRegistry()

getProperty

public String getProperty(String key)

getProperty

public String getProperty(String key,
                          String defvalue)

setProperty

public void setProperty(String name,
                        String value)
Parameters:
name - the property name.
value - the property value.

shutdown

public void shutdown()
              throws IOException
Throws:
IOException

getBundleId

public long getBundleId(String symbolicName)

getWorkingDir

public File getWorkingDir()

getDataDir

public File getDataDir()

getBundle

public BundleImpl getBundle(String symbolicName)

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,
                               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()

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.