Class DynamicServletConfiguration
java.lang.Object
com.foreach.across.modules.web.config.DynamicServletConfiguration
@Configuration
@ConditionalOnConfigurableServletContext
public class DynamicServletConfiguration
extends Object
Registers all
ServletContextInitializer
beans created in any module or in the Across context itself. Picks up any
Servlet
and Filter
beans and converts them to registrations using ServletContextInitializerBeans
.
Any initializers created in the parent context should be registered by the Spring Boot ServletWebServerApplicationContext
,
or manually in a non-embedded configuration.- Author:
- Arne Vandamme
- See Also:
-
ServletContextInitializerBeans
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
registerServletsAndFilters
(AcrossContextBootstrappedEvent bootstrappedEvent)
-
Constructor Details
-
DynamicServletConfiguration
public DynamicServletConfiguration(jakarta.servlet.ServletContext servletContext)
-
-
Method Details
-
registerServletsAndFilters
@EventListener public void registerServletsAndFilters(AcrossContextBootstrappedEvent bootstrappedEvent)
-