@SpringBootApplication
public class Application
extends org.springframework.boot.web.support.SpringBootServletInitializer
NOTE: Requires a Servlet 3.0 container, e.g. Tomcat 7.0 or above.
NOTE: This extends SpringBootServletInitializer in order to allow us to build a deployable WAR file with Spring Boot. See: http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#howto-create-a-deployable-war-file
| Constructor and Description |
|---|
Application() |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.boot.builder.SpringApplicationBuilder |
configure(org.springframework.boot.builder.SpringApplicationBuilder application)
Override the default SpringBootServletInitializer.configure() method,
passing it this Application class.
|
org.springframework.boot.web.servlet.ServletContextInitializer |
contextInitializer() |
protected DSpaceContextListener |
dspaceContextListener()
Register the "DSpaceContextListener" so that it is loaded
for this Application.
|
protected org.springframework.hateoas.RelProvider |
dspaceRelProvider() |
protected javax.servlet.Filter |
dspaceRequestContextFilter()
Register the DSpaceRequestContextFilter, a Filter which checks for open
Context objects *after* a request has been fully processed, and closes them
|
protected javax.servlet.Filter |
dspaceWebappServletFilter()
Register the DSpaceWebappServletFilter, which initializes the
DSpace RequestService / SessionService
|
org.springframework.web.context.request.RequestContextListener |
requestContextListener() |
org.springframework.web.servlet.config.annotation.WebMvcConfigurer |
webMvcConfigurer() |
protected org.springframework.boot.builder.SpringApplicationBuilder configure(org.springframework.boot.builder.SpringApplicationBuilder application)
This is necessary to allow us to build a deployable WAR, rather than always relying on embedded Tomcat.
See: http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#howto-create-a-deployable-war-file
configure in class org.springframework.boot.web.support.SpringBootServletInitializerapplication - @Bean public org.springframework.boot.web.servlet.ServletContextInitializer contextInitializer()
@Bean @Order(value=2) protected DSpaceContextListener dspaceContextListener()
@Bean @Order(value=1) protected javax.servlet.Filter dspaceWebappServletFilter()
@Bean @Order(value=2) protected javax.servlet.Filter dspaceRequestContextFilter()
@Bean public org.springframework.web.context.request.RequestContextListener requestContextListener()
@Bean protected org.springframework.hateoas.RelProvider dspaceRelProvider()
@Bean public org.springframework.web.servlet.config.annotation.WebMvcConfigurer webMvcConfigurer()
Copyright © 2019 DuraSpace. All rights reserved.