Class PackageAdminImpl

java.lang.Object
org.nuxeo.osgi.services.PackageAdminImpl
All Implemented Interfaces:
org.osgi.service.packageadmin.PackageAdmin

public class PackageAdminImpl extends Object implements org.osgi.service.packageadmin.PackageAdmin
Dummy implementation of PackageAdmin service. Only PackageAdmin.getBundles(String, String) is implemented
Author:
Bogdan Stefanescu
  • Field Details

  • Constructor Details

    • PackageAdminImpl

      public PackageAdminImpl(OSGiAdapter osgi)
  • Method Details

    • getBundles

      public org.osgi.framework.Bundle[] getBundles(String symbolicName, String versionRange)
      Specified by:
      getBundles in interface org.osgi.service.packageadmin.PackageAdmin
    • getExportedPackages

      public org.osgi.service.packageadmin.ExportedPackage[] getExportedPackages(org.osgi.framework.Bundle bundle)
      Specified by:
      getExportedPackages in interface org.osgi.service.packageadmin.PackageAdmin
    • getExportedPackages

      public org.osgi.service.packageadmin.ExportedPackage[] getExportedPackages(String name)
      Specified by:
      getExportedPackages in interface org.osgi.service.packageadmin.PackageAdmin
    • getExportedPackage

      public org.osgi.service.packageadmin.ExportedPackage getExportedPackage(String name)
      Specified by:
      getExportedPackage in interface org.osgi.service.packageadmin.PackageAdmin
    • refreshPackages

      public void refreshPackages(org.osgi.framework.Bundle[] bundles)
      Specified by:
      refreshPackages in interface org.osgi.service.packageadmin.PackageAdmin
    • resolveBundles

      public boolean resolveBundles(org.osgi.framework.Bundle[] bundles)
      Specified by:
      resolveBundles in interface org.osgi.service.packageadmin.PackageAdmin
    • getRequiredBundles

      public org.osgi.service.packageadmin.RequiredBundle[] getRequiredBundles(String symbolicName)
      Specified by:
      getRequiredBundles in interface org.osgi.service.packageadmin.PackageAdmin
    • getFragments

      public org.osgi.framework.Bundle[] getFragments(org.osgi.framework.Bundle bundle)
      Specified by:
      getFragments in interface org.osgi.service.packageadmin.PackageAdmin
    • getHosts

      public org.osgi.framework.Bundle[] getHosts(org.osgi.framework.Bundle bundle)
      Specified by:
      getHosts in interface org.osgi.service.packageadmin.PackageAdmin
    • getBundle

      public org.osgi.framework.Bundle getBundle(Class clazz)
      Specified by:
      getBundle in interface org.osgi.service.packageadmin.PackageAdmin
    • getBundleType

      public int getBundleType(org.osgi.framework.Bundle bundle)
      Specified by:
      getBundleType in interface org.osgi.service.packageadmin.PackageAdmin