Package org.nuxeo.osgi.services
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 ofPackageAdmin
service. OnlyPackageAdmin.getBundles(String, String)
is implemented- Author:
- Bogdan Stefanescu
-
-
Field Summary
Fields Modifier and Type Field Description protected OSGiAdapter
osgi
-
Constructor Summary
Constructors Constructor Description PackageAdminImpl(OSGiAdapter osgi)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.osgi.framework.Bundle
getBundle(Class clazz)
org.osgi.framework.Bundle[]
getBundles(String symbolicName, String versionRange)
int
getBundleType(org.osgi.framework.Bundle bundle)
org.osgi.service.packageadmin.ExportedPackage
getExportedPackage(String name)
org.osgi.service.packageadmin.ExportedPackage[]
getExportedPackages(String name)
org.osgi.service.packageadmin.ExportedPackage[]
getExportedPackages(org.osgi.framework.Bundle bundle)
org.osgi.framework.Bundle[]
getFragments(org.osgi.framework.Bundle bundle)
org.osgi.framework.Bundle[]
getHosts(org.osgi.framework.Bundle bundle)
org.osgi.service.packageadmin.RequiredBundle[]
getRequiredBundles(String symbolicName)
void
refreshPackages(org.osgi.framework.Bundle[] bundles)
boolean
resolveBundles(org.osgi.framework.Bundle[] bundles)
-
-
-
Field Detail
-
osgi
protected OSGiAdapter osgi
-
-
Constructor Detail
-
PackageAdminImpl
public PackageAdminImpl(OSGiAdapter osgi)
-
-
Method Detail
-
getBundles
public org.osgi.framework.Bundle[] getBundles(String symbolicName, String versionRange)
- Specified by:
getBundles
in interfaceorg.osgi.service.packageadmin.PackageAdmin
-
getExportedPackages
public org.osgi.service.packageadmin.ExportedPackage[] getExportedPackages(org.osgi.framework.Bundle bundle)
- Specified by:
getExportedPackages
in interfaceorg.osgi.service.packageadmin.PackageAdmin
-
getExportedPackages
public org.osgi.service.packageadmin.ExportedPackage[] getExportedPackages(String name)
- Specified by:
getExportedPackages
in interfaceorg.osgi.service.packageadmin.PackageAdmin
-
getExportedPackage
public org.osgi.service.packageadmin.ExportedPackage getExportedPackage(String name)
- Specified by:
getExportedPackage
in interfaceorg.osgi.service.packageadmin.PackageAdmin
-
refreshPackages
public void refreshPackages(org.osgi.framework.Bundle[] bundles)
- Specified by:
refreshPackages
in interfaceorg.osgi.service.packageadmin.PackageAdmin
-
resolveBundles
public boolean resolveBundles(org.osgi.framework.Bundle[] bundles)
- Specified by:
resolveBundles
in interfaceorg.osgi.service.packageadmin.PackageAdmin
-
getRequiredBundles
public org.osgi.service.packageadmin.RequiredBundle[] getRequiredBundles(String symbolicName)
- Specified by:
getRequiredBundles
in interfaceorg.osgi.service.packageadmin.PackageAdmin
-
getFragments
public org.osgi.framework.Bundle[] getFragments(org.osgi.framework.Bundle bundle)
- Specified by:
getFragments
in interfaceorg.osgi.service.packageadmin.PackageAdmin
-
getHosts
public org.osgi.framework.Bundle[] getHosts(org.osgi.framework.Bundle bundle)
- Specified by:
getHosts
in interfaceorg.osgi.service.packageadmin.PackageAdmin
-
getBundle
public org.osgi.framework.Bundle getBundle(Class clazz)
- Specified by:
getBundle
in interfaceorg.osgi.service.packageadmin.PackageAdmin
-
getBundleType
public int getBundleType(org.osgi.framework.Bundle bundle)
- Specified by:
getBundleType
in interfaceorg.osgi.service.packageadmin.PackageAdmin
-
-