HttpServiceTracker¶
-
public class
HttpServiceTrackerextends ServiceTracker¶ This is the HttpServiceTracker that will be created by
org.motechproject.osgi.web.BlueprintApplicationContextTrackerfor bundles that have a Gemini Blueprint context and theBlueprint-Enabledheader in their manifest. This class is responsible for tracking theorg.osgi.service.http.HttpService. Once it becomes available, anOSGiDispatcherServletis created and registered with service, which means exposing and HTTP endpoint for the bundle. We also create and register anorg.motechproject.osgi.web.OSGiDispatcherServletwith a context built upon the context created by the Gemini Extender. The dispatcher servlet created here allows HTTP access to the bundle, by making its Spring context the parent of the dispatchers context.