public class PackageAdminServiceTracker extends Object implements org.osgi.framework.ServiceListener
| Modifier and Type | Field and Description |
|---|---|
static PackageAdminServiceTracker |
INSTANCE |
| Constructor and Description |
|---|
PackageAdminServiceTracker(org.osgi.framework.BundleContext context) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
collectFragmentsAndRequiredBundles(org.osgi.framework.Bundle bundle,
org.osgi.service.packageadmin.PackageAdmin admin,
Map<String,org.osgi.framework.Bundle> deps,
boolean onlyReexport)
Returns the fragments and the required-bundles.
|
protected void |
collectRequiredBundles(org.osgi.framework.Bundle bundle,
org.osgi.service.packageadmin.PackageAdmin admin,
Map<String,org.osgi.framework.Bundle> deps,
boolean onlyReexport)
A simplistic but good enough parser for the Require-Bundle header.
|
boolean |
frameworkHasCompletedAutostarts() |
org.osgi.framework.Bundle[] |
getFragments(org.osgi.framework.Bundle bundle)
Helper to access the PackageAdmin and return the fragments hosted by a
bundle.
|
org.osgi.framework.Bundle[] |
getFragmentsAndRequiredBundles(org.osgi.framework.Bundle bundle)
Returns the fragments and the required-bundles of a bundle.
|
void |
serviceChanged(org.osgi.framework.ServiceEvent event)
Invokes the optional BundleActivator in each fragment.
|
void |
stop() |
public static PackageAdminServiceTracker INSTANCE
public PackageAdminServiceTracker(org.osgi.framework.BundleContext context)
public void serviceChanged(org.osgi.framework.ServiceEvent event)
serviceChanged in interface org.osgi.framework.ServiceListenerevent - The ServiceEvent object.public org.osgi.framework.Bundle[] getFragments(org.osgi.framework.Bundle bundle)
bundle - public org.osgi.framework.Bundle[] getFragmentsAndRequiredBundles(org.osgi.framework.Bundle bundle)
bundle - webFragOrAnnotationOrResources - protected void collectFragmentsAndRequiredBundles(org.osgi.framework.Bundle bundle,
org.osgi.service.packageadmin.PackageAdmin admin,
Map<String,org.osgi.framework.Bundle> deps,
boolean onlyReexport)
bundle - webFragOrAnnotationOrResources - protected void collectRequiredBundles(org.osgi.framework.Bundle bundle,
org.osgi.service.packageadmin.PackageAdmin admin,
Map<String,org.osgi.framework.Bundle> deps,
boolean onlyReexport)
onlyReexport - true to collect resources and web-fragments
transitively if and only if the directive visibility is
reexport.bundle - public void stop()
public boolean frameworkHasCompletedAutostarts()
Copyright © 1995-2015 Webtide. All Rights Reserved.