OSGiDispatcherServlet

public class OSGiDispatcherServlet extends DispatcherServlet

This class extends Spring’s org.springframework.web.servlet.DispatcherServlet and is used by MOTECH for registering HTTP endpoints. This extension adds support for OSGi by making sure that MotechOSGiWebApplicationContext instances are connected with their parent context instances, created by the Gemini Extender. It also injects the bundle context into those contexts.

Constructors

OSGiDispatcherServlet

public OSGiDispatcherServlet(BundleContext bundleContext)

OSGiDispatcherServlet

public OSGiDispatcherServlet(BundleContext bundleContext, ConfigurableWebApplicationContext configurableWebApplicationContext)

Methods

initFrameworkServlet

protected void initFrameworkServlet()

postProcessWebApplicationContext

protected void postProcessWebApplicationContext(ConfigurableWebApplicationContext wac)