Class PackageAdminServiceTracker

  extended by org.eclipse.jetty.osgi.boot.utils.internal.PackageAdminServiceTracker
All Implemented Interfaces:
EventListener, org.osgi.framework.ServiceListener

public class PackageAdminServiceTracker
extends Object
implements org.osgi.framework.ServiceListener

When the PackageAdmin service is activated we can look for the fragments attached to this bundle and "activate" them.

Constructor Summary
PackageAdminServiceTracker(org.osgi.framework.BundleContext context)
Method Summary
 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

Constructor Detail


public PackageAdminServiceTracker(org.osgi.framework.BundleContext context)
Method Detail


public void serviceChanged(org.osgi.framework.ServiceEvent event)
Invokes the optional BundleActivator in each fragment. By convention the bundle activator for a fragment must be in the package that is defined by the symbolic name of the fragment and the name of the class must be 'FragmentActivator'.

Specified by:
serviceChanged in interface org.osgi.framework.ServiceListener
event - The ServiceEvent object.


public void stop()

Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.