UIServiceTrackers¶
-
public class
UIServiceTrackers¶ The registry that handles
org.motechproject.osgi.web.UIServiceTrackerinstances created for bundles withBlueprint-Enabledheader in their manifest.
Constructors¶
UIServiceTrackers¶
-
public
UIServiceTrackers(BundleContext bundleContext)¶ Constructs the registry and registers a bundle listener that will remove trackers for bundles that are stopping.
Parameters: - bundleContext – the bundle context used to register the bundle listener
Methods¶
addTrackerFor¶
-
public UIServiceTracker
addTrackerFor(Bundle bundle, ApplicationContext applicationContext)¶ Creates a
org.motechproject.osgi.web.UIServiceTrackerfor the given bundle. Theorg.motechproject.osgi.web.ModuleRegistrationDatafrom the provided Spring context of the bundle will be used for registering the UI.Parameters: - bundle – the bundle to create the tracker for
- applicationContext – the Spring context of the bundle
Returns: the newly created
org.motechproject.osgi.web.UIServiceTrackerinstance
isBeingTracked¶
removeTrackerFor¶
-
public UIServiceTracker
removeTrackerFor(Bundle bundle)¶ Closes and removes the
org.motechproject.osgi.web.UIServiceTrackerfor the bundle.Parameters: - bundle – the bundle to remove the tracker for
Returns: the closed and removed tracker