Package org.joinfaces.servlet
Class ServletContainerInitializerRegistrationBean<T extends ServletContainerInitializer>
java.lang.Object
org.joinfaces.servlet.ServletContainerInitializerRegistrationBean<T>
- Type Parameters:
T
- Type of the actualServletContainerInitializer
implementation
- All Implemented Interfaces:
WebServerFactoryCustomizer<ConfigurableServletWebServerFactory>
- Direct Known Subclasses:
MojarraInitializerRegistrationBean
,MyFacesInitializerRegistrationBean
,WeldServletContainerInitializerRegistrationBean
public class ServletContainerInitializerRegistrationBean<T extends ServletContainerInitializer>
extends Object
implements WebServerFactoryCustomizer<ConfigurableServletWebServerFactory>
RegistrationBean
for ServletContainerInitializer
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 the ServletContainerInitializer
.
-
Constructor Summary
ConstructorDescriptionServletContainerInitializerRegistrationBean
(Class<T> servletContainerInitializerClass) -
Method Summary
Modifier and TypeMethodDescriptionvoid
findPreparedScanResult
(ClassLoader classLoader) getClasses
(ClassLoader classLoader) protected void
handleScanResult
(ScanResult scanResult) boolean
void
setUsePreparedScanResult
(boolean usePreparedScanResult)
-
Constructor Details
-
ServletContainerInitializerRegistrationBean
-
-
Method Details
-
customize
- Specified by:
customize
in interfaceWebServerFactoryCustomizer<T extends ServletContainerInitializer>
-
getClasses
-
findPreparedScanResult
-
performClasspathScan
-
handleScanResult
-
getServletContainerInitializerClass
-
isUsePreparedScanResult
public boolean isUsePreparedScanResult() -
setUsePreparedScanResult
public void setUsePreparedScanResult(boolean usePreparedScanResult)
-