Class ServletContainerInitializerRegistrationBean<T extends javax.servlet.ServletContainerInitializer>
- java.lang.Object
 - 
- org.joinfaces.autoconfigure.servlet.initializer.ServletContainerInitializerRegistrationBean<T>
 
 
- 
- Type Parameters:
 T- Type of the actualServletContainerInitializerimplementation
- All Implemented Interfaces:
 org.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory>
- Direct Known Subclasses:
 MyFacesInitializerRegistrationBean
public 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>RegistrationBeanforServletContainerInitializers.This is implemented as
WebServerFactoryCustomizerso its only applied to embedded servlet-containers. When deployed as war file, the external servlet-container will handle theServletContainerInitializer. 
- 
- 
Constructor Summary
Constructors Constructor Description ServletContainerInitializerRegistrationBean(java.lang.Class<T> servletContainerInitializerClass) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcustomize(org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory factory)protected java.util.Optional<java.util.Set<java.lang.Class<?>>>findPreparedScanResult(java.lang.ClassLoader classLoader)protected java.util.Set<java.lang.Class<?>>getClasses(java.lang.ClassLoader classLoader)java.lang.Class<T>getServletContainerInitializerClass()protected voidhandleScanResult(io.github.classgraph.ScanResult scanResult)booleanisUsePreparedScanResult()protected java.util.Set<java.lang.Class<?>>performClasspathScan()voidsetUsePreparedScanResult(boolean usePreparedScanResult) 
 - 
 
- 
- 
Constructor Detail
- 
ServletContainerInitializerRegistrationBean
public ServletContainerInitializerRegistrationBean(java.lang.Class<T> servletContainerInitializerClass)
 
 - 
 
- 
Method Detail
- 
customize
public void customize(org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory factory)
- Specified by:
 customizein interfaceorg.springframework.boot.web.server.WebServerFactoryCustomizer<T extends javax.servlet.ServletContainerInitializer>
 
- 
getClasses
protected java.util.Set<java.lang.Class<?>> getClasses(java.lang.ClassLoader classLoader)
 
- 
findPreparedScanResult
protected java.util.Optional<java.util.Set<java.lang.Class<?>>> findPreparedScanResult(java.lang.ClassLoader classLoader)
 
- 
performClasspathScan
@Nullable protected java.util.Set<java.lang.Class<?>> performClasspathScan()
 
- 
handleScanResult
protected void handleScanResult(io.github.classgraph.ScanResult scanResult)
 
- 
getServletContainerInitializerClass
public java.lang.Class<T> getServletContainerInitializerClass()
 
- 
isUsePreparedScanResult
public boolean isUsePreparedScanResult()
 
- 
setUsePreparedScanResult
public void setUsePreparedScanResult(boolean usePreparedScanResult)
 
 - 
 
 -