Class WebApplicationContextServletContextAwareProcessor
java.lang.Object
org.springframework.web.context.support.ServletContextAwareProcessor
org.springframework.boot.web.server.servlet.context.WebApplicationContextServletContextAwareProcessor
- All Implemented Interfaces:
org.springframework.beans.factory.config.BeanPostProcessor
public class WebApplicationContextServletContextAwareProcessor
extends org.springframework.web.context.support.ServletContextAwareProcessor
Variant of
ServletContextAwareProcessor for use with a
ConfigurableWebApplicationContext. Can be used when registering the processor
can occur before the ServletContext or ServletConfig have been
initialized.- Since:
- 4.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionWebApplicationContextServletContextAwareProcessor(org.springframework.web.context.ConfigurableWebApplicationContext webApplicationContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected @Nullable jakarta.servlet.ServletConfigprotected @Nullable jakarta.servlet.ServletContextMethods inherited from class org.springframework.web.context.support.ServletContextAwareProcessor
postProcessAfterInitialization, postProcessBeforeInitialization
-
Constructor Details
-
WebApplicationContextServletContextAwareProcessor
public WebApplicationContextServletContextAwareProcessor(org.springframework.web.context.ConfigurableWebApplicationContext webApplicationContext)
-
-
Method Details
-
getServletContext
protected @Nullable jakarta.servlet.ServletContext getServletContext()- Overrides:
getServletContextin classorg.springframework.web.context.support.ServletContextAwareProcessor
-
getServletConfig
protected @Nullable jakarta.servlet.ServletConfig getServletConfig()- Overrides:
getServletConfigin classorg.springframework.web.context.support.ServletContextAwareProcessor
-