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.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | DEFAULT_SERVLET_NAME
The default servlet name to use. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected ApplicationContext | createApplicationContext()
Return the Spring configuration that contains application beans including
the ones detected by |
| protected abstract Class | getConfigClasses()
Specify |
| protected String | |
| protected String | |
| public void | onStartup(ServletContext
the servletContext)ServletContext to initializeImplements org. ServletContext with any servlets, filters, listeners
context-params and attributes necessary for initializing this web application.
|
| protected void | refreshApplicationContext(ApplicationContext context)
Refresh the given application context, if necessary. |
| protected void | registerCloseListener(ServletContext
the servlet context to listen to servletContext, ApplicationContext the application context that is to be
closed when applicationContext)servletContext is destroyedRegister a |
| DEFAULT_SERVLET_NAME | back to summary |
|---|---|
| public static final String DEFAULT_SERVLET_NAME The default servlet name to use. See | |
| AbstractReactiveWebInitializer | back to summary |
|---|---|
| public AbstractReactiveWebInitializer() | |
| createApplicationContext | back to summary |
|---|---|
| protected ApplicationContext createApplicationContext() Return the Spring configuration that contains application beans including
the ones detected by | |
| getConfigClasses | back to summary |
|---|---|
| protected abstract Class Specify | |
| getServletMapping | back to summary |
|---|---|
| protected String getServletMapping() Return the Servlet mapping to use. Only the default Servlet mapping '/' and path-based Servlet mappings such as '/api/*' are supported. By default this is set to '/'. | |
| getServletName | back to summary |
|---|---|
| protected String getServletName() Return the name to use to register the By default this is | |
| onStartup | back to summary |
|---|---|
| public void onStartup(ServletContext servletContext) throws ServletException Implements org. Doc from org. Configure the given
| |
| refreshApplicationContext | back to summary |
|---|---|
| protected void refreshApplicationContext(ApplicationContext context) Refresh the given application context, if necessary. | |
| registerCloseListener | back to summary |
|---|---|
| protected void registerCloseListener(ServletContext servletContext, ApplicationContext applicationContext) Register a
| |
| Modifier and Type | Field and Description |
|---|---|
| private final ConfigurableApplicationContext |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | contextDestroyed(ServletContextEvent
Information about the ServletContext that was destroyed sce)Overrides default jakarta. |
| public void | contextInitialized(ServletContextEvent
Information about the ServletContext that was initialized sce)Overrides default jakarta. |
| applicationContext | back to summary |
|---|---|
| private final ConfigurableApplicationContext applicationContext | |
| ServletContextDestroyedListener | back to summary |
|---|---|
| public ServletContextDestroyedListener(ConfigurableApplicationContext applicationContext) | |
| contextDestroyed | back to summary |
|---|---|
| public void contextDestroyed(ServletContextEvent sce) Overrides default jakarta. Doc from jakarta. Notification that the servlet context is about to be shut down. All servlets and filters have been destroyed before any ServletContextListeners are notified of context destruction. The default implementation is a NO-OP.
| |
| contextInitialized | back to summary |
|---|---|
| public void contextInitialized(ServletContextEvent sce) Overrides default jakarta. Doc from jakarta. Notification that the web application initialization process is starting. All ServletContextListeners are notified of context initialization before any filter or servlet in the web application is initialized. The default implementation is a NO-OP.
| |