Class LogbackServletContainerInitializer

  • All Implemented Interfaces:
    javax.servlet.ServletContainerInitializer

    public class LogbackServletContainerInitializer
    extends java.lang.Object
    implements javax.servlet.ServletContainerInitializer
    Attaches a new instance of LogbackServletContextListener to the current web-applications ServletContext.
    Since:
    1.1.10
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) boolean isDisabledByConfiguration​(javax.servlet.ServletContext ctx)
      Search for value of DISABLE_SERVLET_CONTAINER_INITIALIZER_KEY in the web-app first, then as a system property and as an environment variable last.
      void onStartup​(java.util.Set<java.lang.Class<?>> c, javax.servlet.ServletContext ctx)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LogbackServletContainerInitializer

        public LogbackServletContainerInitializer()
    • Method Detail

      • onStartup

        public void onStartup​(java.util.Set<java.lang.Class<?>> c,
                              javax.servlet.ServletContext ctx)
                       throws javax.servlet.ServletException
        Specified by:
        onStartup in interface javax.servlet.ServletContainerInitializer
        Throws:
        javax.servlet.ServletException
      • isDisabledByConfiguration

        boolean isDisabledByConfiguration​(javax.servlet.ServletContext ctx)
        Search for value of DISABLE_SERVLET_CONTAINER_INITIALIZER_KEY in the web-app first, then as a system property and as an environment variable last.
        Parameters:
        ctx -
        Returns:
        True if value of DISABLE_SERVLET_CONTAINER_INITIALIZER_KEY is available and set to "true", false otherwise.