T - The type of the ServletContainerInitializerpublic class ServletContainerInitializerRegistrationBean<T extends javax.servlet.ServletContainerInitializer>
extends java.lang.Object
implements org.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory>
RegistrationBean for ServletContainerInitializers.
This is implemented as WebServerFactoryCustomizer so its only applied to embedded servlet-containers.
When deployed as war file, the external servlet-container will handle the ServletContainerInitializer.
| Constructor and Description |
|---|
ServletContainerInitializerRegistrationBean(java.lang.Class<T> servletContainerInitializerClass) |
| Modifier and Type | Method and Description |
|---|---|
void |
customize(org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory factory) |
protected java.util.Set<java.lang.Class<?>> |
getClasses(javax.servlet.annotation.HandlesTypes handlesTypes) |
java.lang.Class<T> |
getServletContainerInitializerClass() |
public ServletContainerInitializerRegistrationBean(java.lang.Class<T> servletContainerInitializerClass)
public void customize(org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory factory)
customize in interface org.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory>protected java.util.Set<java.lang.Class<?>> getClasses(javax.servlet.annotation.HandlesTypes handlesTypes)
public java.lang.Class<T> getServletContainerInitializerClass()