Class ServletContainerInitializerRegistrationBean<T extends ServletContainerInitializer>
- java.lang.Object
-
- org.joinfaces.autoconfigure.servlet.initializer.ServletContainerInitializerRegistrationBean<T>
-
- Type Parameters:
T
- Type of the actualServletContainerInitializer
implementation
- All Implemented Interfaces:
WebServerFactoryCustomizer<ConfigurableServletWebServerFactory>
- Direct Known Subclasses:
MyFacesInitializerRegistrationBean
,WeldServletContainerInitializerRegistrationBean
public class ServletContainerInitializerRegistrationBean<T extends ServletContainerInitializer> extends Object implements WebServerFactoryCustomizer<ConfigurableServletWebServerFactory>
RegistrationBean
forServletContainerInitializer
s.This is implemented as
WebServerFactoryCustomizer
so 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(Class<T> servletContainerInitializerClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
customize(ConfigurableServletWebServerFactory factory)
protected Optional<Set<Class<?>>>
findPreparedScanResult(ClassLoader classLoader)
protected Set<Class<?>>
getClasses(ClassLoader classLoader)
Class<T>
getServletContainerInitializerClass()
protected void
handleScanResult(ScanResult scanResult)
boolean
isUsePreparedScanResult()
protected Set<Class<?>>
performClasspathScan()
void
setUsePreparedScanResult(boolean usePreparedScanResult)
-
-
-
Method Detail
-
customize
public void customize(ConfigurableServletWebServerFactory factory)
- Specified by:
customize
in interfaceWebServerFactoryCustomizer<T extends ServletContainerInitializer>
-
getClasses
protected Set<Class<?>> getClasses(ClassLoader classLoader)
-
findPreparedScanResult
protected Optional<Set<Class<?>>> findPreparedScanResult(ClassLoader classLoader)
-
handleScanResult
protected void handleScanResult(ScanResult scanResult)
-
isUsePreparedScanResult
public boolean isUsePreparedScanResult()
-
setUsePreparedScanResult
public void setUsePreparedScanResult(boolean usePreparedScanResult)
-
-