spring-framework / org.springframework.web.server.adapter / AbstractReactiveWebInitializer

AbstractReactiveWebInitializer

abstract class AbstractReactiveWebInitializer : WebApplicationInitializer

Base class for a org.springframework.web.WebApplicationInitializer that installs a Spring Reactive Web Application on a Servlet container.

Spring configuration is loaded and given to WebHttpHandlerBuilder which scans the context looking for specific beans and creates a reactive HttpHandler. The resulting handler is installed as a Servlet through the ServletHttpHandlerAdapter.

Author
Rossen Stoyanchev

Since
5.0.2

Constructors

<init>

AbstractReactiveWebInitializer()

Base class for a org.springframework.web.WebApplicationInitializer that installs a Spring Reactive Web Application on a Servlet container.

Spring configuration is loaded and given to WebHttpHandlerBuilder which scans the context looking for specific beans and creates a reactive HttpHandler. The resulting handler is installed as a Servlet through the ServletHttpHandlerAdapter.

Properties

DEFAULT_SERVLET_NAME

static val DEFAULT_SERVLET_NAME: String

The default servlet name to use. See #getServletName.

Functions

onStartup

open fun onStartup(servletContext: ServletContext): Unit