Class OSGiAdapter

    • Constructor Detail

      • OSGiAdapter

        public OSGiAdapter​(File workingDir)
      • OSGiAdapter

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

      • removeService

        public void removeService​(String clazz)
      • initialize

        protected void initialize​(Properties properties)
      • setSystemBundle

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

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

        public long getBundleId​(String symbolicName)
      • getWorkingDir

        public File getWorkingDir()
      • getDataDir

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