public abstract class AbstractAcrossServletInitializer
extends org.springframework.web.servlet.support.AbstractDispatcherServletInitializer
Servlet 3 environments only need to extend this initializer and configure the application context with one or more configuration classes or locations. Any AcrossContext bootstrapped in the ApplicationContext will be able to extend the ServletContext.
Modifier and Type | Field and Description |
---|---|
static String |
ATTRIBUTE_DYNAMIC_MULTIPART_CONFIG |
static String |
DYNAMIC_INITIALIZER |
Constructor and Description |
---|
AbstractAcrossServletInitializer() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
configure(AcrossWebApplicationContext applicationContext)
Configure the ApplicationContext before it is initialized.
|
protected org.springframework.web.context.WebApplicationContext |
createRootApplicationContext() |
protected org.springframework.web.context.WebApplicationContext |
createServletApplicationContext()
Creates a default empty WebApplicationContext for the servlet itself.
|
protected void |
customizeRegistration(javax.servlet.ServletRegistration.Dynamic registration) |
protected void |
extendServletContext(javax.servlet.ServletContext servletContext)
Extension point for extending the ServletContext during initialization.
|
protected String[] |
getServletMappings() |
void |
onStartup(javax.servlet.ServletContext servletContext) |
protected void |
registerContextLoaderListener(javax.servlet.ServletContext servletContext) |
createDispatcherServlet, getServletApplicationContextInitializers, getServletFilters, getServletName, isAsyncSupported, registerDispatcherServlet, registerServletFilter
public static final String DYNAMIC_INITIALIZER
public static final String ATTRIBUTE_DYNAMIC_MULTIPART_CONFIG
public void onStartup(javax.servlet.ServletContext servletContext) throws javax.servlet.ServletException
onStartup
in interface org.springframework.web.WebApplicationInitializer
onStartup
in class org.springframework.web.servlet.support.AbstractDispatcherServletInitializer
javax.servlet.ServletException
protected void registerContextLoaderListener(javax.servlet.ServletContext servletContext)
registerContextLoaderListener
in class org.springframework.web.context.AbstractContextLoaderInitializer
protected org.springframework.web.context.WebApplicationContext createRootApplicationContext()
createRootApplicationContext
in class org.springframework.web.context.AbstractContextLoaderInitializer
protected abstract void configure(AcrossWebApplicationContext applicationContext)
applicationContext
- AcrossWebApplicationContext that contains the main Across context configuration.protected org.springframework.web.context.WebApplicationContext createServletApplicationContext()
createServletApplicationContext
in class org.springframework.web.servlet.support.AbstractDispatcherServletInitializer
protected String[] getServletMappings()
getServletMappings
in class org.springframework.web.servlet.support.AbstractDispatcherServletInitializer
protected void extendServletContext(javax.servlet.ServletContext servletContext)
servletContext
- ServletContext while initialization is busy.protected void customizeRegistration(javax.servlet.ServletRegistration.Dynamic registration)
customizeRegistration
in class org.springframework.web.servlet.support.AbstractDispatcherServletInitializer
Copyright © 2022. All rights reserved.