Class OsgiWebInitializer


  • @Singleton
    public class OsgiWebInitializer
    extends Object
    Registers the MetricsServlet.
    Author:
    Michael Vorburger.ch
    • Constructor Detail

      • OsgiWebInitializer

        @Inject
        public OsgiWebInitializer​(org.osgi.service.http.HttpService osgiHttpService,
                                  io.prometheus.client.CollectorRegistry collectorRegistry)
    • Method Detail

      • init

        @PostConstruct
        public void init()
                  throws javax.servlet.ServletException,
                         org.osgi.service.http.NamespaceException
        Throws:
        javax.servlet.ServletException
        org.osgi.service.http.NamespaceException
      • close

        @PreDestroy
        public void close()