Package ch.qos.logback.classic.servlet
Class LogbackServletContainerInitializer
- java.lang.Object
-
- ch.qos.logback.classic.servlet.LogbackServletContainerInitializer
-
- All Implemented Interfaces:
ServletContainerInitializer
public class LogbackServletContainerInitializer extends java.lang.Object implements ServletContainerInitializer
Attaches a new instance ofLogbackServletContextListenerto the current web-applicationsServletContext.- Since:
- 1.1.10
-
-
Constructor Summary
Constructors Constructor Description LogbackServletContainerInitializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonStartup(java.util.Set<java.lang.Class<?>> c, ServletContext ctx)Receives notification during startup of a web application of the classes within the web application that matched the criteria defined via theHandlesTypesannotation.
-
-
-
Method Detail
-
onStartup
public void onStartup(java.util.Set<java.lang.Class<?>> c, ServletContext ctx) throws ServletExceptionDescription copied from interface:ServletContainerInitializerReceives notification during startup of a web application of the classes within the web application that matched the criteria defined via theHandlesTypesannotation.- Specified by:
onStartupin interfaceServletContainerInitializer- Parameters:
c- The (possibly null) set of classes that met the specified criteriactx- The ServletContext of the web application in which the classes were discovered- Throws:
ServletException- If an error occurs
-
-