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 an org.motechproject.osgi.web.HttpServiceTracker and a org.motechproject.osgi.web.UIServiceTracker. These trackers will be responsible for registering the module with org.osgi.service.http.HttpService (so that they can expose an HTTP endpoint) and the org.motechproject.osgi.web.UIFrameworkService (so that they can register their UI) respectively. This module also uses the org.motechproject.osgi.web.Log4JBundleLoader for loading log4j configuration files from the registered modules. The processing is only performed for bundles that have the Blueprint-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)