BlueprintApplicationContextTracker¶
-
public class
BlueprintApplicationContextTracker
extends ApplicationContextTracker¶ The
BlueprintApplicationContextTracker
class tracks application contexts, which are registered as services by the Gemini extender. This is the main processor for MOTECH modules. For each module it will create anorg.motechproject.osgi.web.HttpServiceTracker
and aorg.motechproject.osgi.web.UIServiceTracker
. These trackers will be responsible for registering the module withorg.osgi.service.http.HttpService
(so that they can expose an HTTP endpoint) and theorg.motechproject.osgi.web.UIFrameworkService
(so that they can register their UI) respectively. This module also uses theorg.motechproject.osgi.web.Log4JBundleLoader
for loading log4j configuration files from the registered modules. The processing is only performed for bundles that have theBlueprint-Enabled
header in their manifest.
Constructors¶
BlueprintApplicationContextTracker¶
-
public
BlueprintApplicationContextTracker
(BundleContext context)¶
Methods¶
addingService¶
-
public Object
addingService
(ServiceReference serviceReference)¶
removedService¶
-
public void
removedService
(ServiceReference reference, Object service)¶