Class MicronautServletInitializer
java.lang.Object
io.micronaut.servlet.engine.initializer.MicronautServletInitializer
- All Implemented Interfaces:
jakarta.servlet.ServletContainerInitializer
public class MicronautServletInitializer
extends Object
implements jakarta.servlet.ServletContainerInitializer
A servlet initializer for Micronaut for deployment as a WAR file.
- Since:
- 1.0.0
- Author:
- graemerocher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected io.micronaut.context.ApplicationContextBuilder
buildApplicationContext
(jakarta.servlet.ServletContext ctx) Builds the application context.void
-
Constructor Details
-
MicronautServletInitializer
public MicronautServletInitializer()
-
-
Method Details
-
onStartup
- Specified by:
onStartup
in interfacejakarta.servlet.ServletContainerInitializer
-
buildApplicationContext
protected io.micronaut.context.ApplicationContextBuilder buildApplicationContext(jakarta.servlet.ServletContext ctx) Builds the application context.- Parameters:
ctx
- The context- Returns:
- The application context builder
-