HttpServiceTracker¶
-
public class
HttpServiceTracker
extends ServiceTracker¶ This is the HttpServiceTracker that will be created by
org.motechproject.osgi.web.BlueprintApplicationContextTracker
for bundles that have a Gemini Blueprint context and theBlueprint-Enabled
header in their manifest. This class is responsible for tracking theorg.osgi.service.http.HttpService
. Once it becomes available, anOSGiDispatcherServlet
is created and registered with service, which means exposing and HTTP endpoint for the bundle. We also create and register anorg.motechproject.osgi.web.OSGiDispatcherServlet
with 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.