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 -
Method Summary
Modifier and TypeMethodDescriptionorg.osgi.framework.BundleaddingBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event) Implemented from BundleActivator.voidblueprintEvent(org.osgi.service.blueprint.container.BlueprintEvent event) Implemented from BlueprintListener to listen for blueprint events.voidbundleChanged(org.osgi.framework.BundleEvent event) Implemented from SynchronousBundleListener.voidmodifiedBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event, org.osgi.framework.Bundle object) Implemented from BundleTrackerCustomizer.voidremovedBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event, org.osgi.framework.Bundle object) Implemented from BundleTrackerCustomizer.voidstart(org.osgi.framework.BundleContext context) Implemented from BundleActivator.voidstop(org.osgi.framework.BundleContext context) Implemented from BundleActivator.
-
Constructor Details
-
BlueprintBundleTracker
public BlueprintBundleTracker()
-
-
Method Details
-
start
public void start(org.osgi.framework.BundleContext context) Implemented from BundleActivator.- Specified by:
startin interfaceorg.osgi.framework.BundleActivator
-
stop
public void stop(org.osgi.framework.BundleContext context) Implemented from BundleActivator.- Specified by:
stopin interfaceorg.osgi.framework.BundleActivator
-
bundleChanged
public void bundleChanged(org.osgi.framework.BundleEvent event) Implemented from SynchronousBundleListener.- Specified by:
bundleChangedin interfaceorg.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:
addingBundlein interfaceorg.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:
modifiedBundlein interfaceorg.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:
removedBundlein interfaceorg.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:
blueprintEventin interfaceorg.osgi.service.blueprint.container.BlueprintListener- Parameters:
event- the event to handle
-