Class OsgiWebInitializer


  • @Singleton
    public class OsgiWebInitializer
    extends Object
    Initializes and registers the DiagStatusServlet.

    This implementation uses the OSGi HttpService directly, because our WebContext and WebServer abstraction are in AAA, and we don't want to have a dependency to AAA from infrautils.

    Author:
    Michael Vorburger.ch
    • Constructor Detail

      • OsgiWebInitializer

        @Inject
        public OsgiWebInitializer​(org.osgi.service.http.HttpService osgiHttpService,
                                  DiagStatusService diagStatusService)
                           throws javax.servlet.ServletException,
                                  org.osgi.service.http.NamespaceException
        Throws:
        javax.servlet.ServletException
        org.osgi.service.http.NamespaceException
    • Method Detail

      • close

        @PreDestroy
        public void close()