|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.jetty.osgi.boot.utils.internal.PackageAdminServiceTracker
public class PackageAdminServiceTracker
When the PackageAdmin service is activated we can look for the fragments attached to this bundle and "activate" them.
Field Summary | |
---|---|
static PackageAdminServiceTracker |
INSTANCE
|
Constructor Summary | |
---|---|
PackageAdminServiceTracker(org.osgi.framework.BundleContext context)
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static PackageAdminServiceTracker INSTANCE
Constructor Detail |
---|
public PackageAdminServiceTracker(org.osgi.framework.BundleContext context)
Method Detail |
---|
public void serviceChanged(org.osgi.framework.ServiceEvent event)
serviceChanged
in interface org.osgi.framework.ServiceListener
event
- 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |