Class BlueprintBundleTracker

java.lang.Object
org.opendaylight.controller.blueprint.BlueprintBundleTracker
All Implemented Interfaces:
EventListener, org.osgi.framework.BundleActivator, org.osgi.framework.BundleListener, org.osgi.framework.SynchronousBundleListener, org.osgi.service.blueprint.container.BlueprintListener, org.osgi.util.tracker.BundleTrackerCustomizer<org.osgi.framework.Bundle>

public class BlueprintBundleTracker extends Object implements org.osgi.framework.BundleActivator, org.osgi.util.tracker.BundleTrackerCustomizer<org.osgi.framework.Bundle>, org.osgi.service.blueprint.container.BlueprintListener, org.osgi.framework.SynchronousBundleListener
This class is created in bundle activation and scans ACTIVE bundles for blueprint XML files located under the well-known org/opendaylight/blueprint/ path and deploys the XML files via the Aries BlueprintExtenderService. This path differs from the standard OSGI-INF/blueprint path to allow for controlled deployment of blueprint containers in an orderly manner.
Author:
Thomas Pantelis
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.osgi.framework.Bundle
    addingBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event)
    Implemented from BundleActivator.
    void
    blueprintEvent(org.osgi.service.blueprint.container.BlueprintEvent event)
    Implemented from BlueprintListener to listen for blueprint events.
    void
    bundleChanged(org.osgi.framework.BundleEvent event)
    Implemented from SynchronousBundleListener.
    void
    modifiedBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event, org.osgi.framework.Bundle object)
    Implemented from BundleTrackerCustomizer.
    void
    removedBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event, org.osgi.framework.Bundle object)
    Implemented from BundleTrackerCustomizer.
    void
    start(org.osgi.framework.BundleContext context)
    Implemented from BundleActivator.
    void
    stop(org.osgi.framework.BundleContext context)
    Implemented from BundleActivator.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BlueprintBundleTracker

      public BlueprintBundleTracker()
  • Method Details

    • start

      public void start(org.osgi.framework.BundleContext context)
      Implemented from BundleActivator.
      Specified by:
      start in interface org.osgi.framework.BundleActivator
    • stop

      public void stop(org.osgi.framework.BundleContext context)
      Implemented from BundleActivator.
      Specified by:
      stop in interface org.osgi.framework.BundleActivator
    • bundleChanged

      public void bundleChanged(org.osgi.framework.BundleEvent event)
      Implemented from SynchronousBundleListener.
      Specified by:
      bundleChanged in interface org.osgi.framework.BundleListener
    • addingBundle

      public org.osgi.framework.Bundle addingBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event)
      Implemented from BundleActivator.
      Specified by:
      addingBundle in interface org.osgi.util.tracker.BundleTrackerCustomizer<org.osgi.framework.Bundle>
    • modifiedBundle

      public void modifiedBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event, org.osgi.framework.Bundle object)
      Implemented from BundleTrackerCustomizer.
      Specified by:
      modifiedBundle in interface org.osgi.util.tracker.BundleTrackerCustomizer<org.osgi.framework.Bundle>
    • removedBundle

      public void removedBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event, org.osgi.framework.Bundle object)
      Implemented from BundleTrackerCustomizer.
      Specified by:
      removedBundle in interface org.osgi.util.tracker.BundleTrackerCustomizer<org.osgi.framework.Bundle>
    • blueprintEvent

      public void blueprintEvent(org.osgi.service.blueprint.container.BlueprintEvent event)
      Implemented from BlueprintListener to listen for blueprint events.
      Specified by:
      blueprintEvent in interface org.osgi.service.blueprint.container.BlueprintListener
      Parameters:
      event - the event to handle