Class IridaUIWebConfig
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.config.web.IridaUIWebConfig
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
,org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@Configuration @ComponentScan(basePackages="ca.corefacility.bioinformatics.irida.ria") @Import({WebEmailConfig.class,IridaApiSecurityConfig.class}) public class IridaUIWebConfig extends java.lang.Object implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer, org.springframework.context.ApplicationContextAware
-
-
Constructor Summary
Constructors Constructor Description IridaUIWebConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addArgumentResolvers(java.util.List<org.springframework.web.method.support.HandlerMethodArgumentResolver> argumentResolvers)
void
addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
void
addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
void
addViewControllers(org.springframework.web.servlet.config.annotation.ViewControllerRegistry registry)
AnalyticsHandlerInterceptor
analyticsHandlerInterceptor()
BreadCrumbInterceptor
breadCrumbInterceptor()
Cart
cart()
org.springframework.boot.autoconfigure.web.servlet.error.ErrorViewResolver
errorViewResolver()
GalaxySessionInterceptor
galaxySessionInterceptor()
org.springframework.web.servlet.LocaleResolver
localeResolver()
void
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
org.thymeleaf.spring5.SpringTemplateEngine
templateEngine()
UserSecurityInterceptor
userSecurityInterceptor()
org.thymeleaf.spring5.view.ThymeleafViewResolver
viewResolver()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
addCorsMappings, addFormatters, addReturnValueHandlers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
-
-
-
-
Method Detail
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
galaxySessionInterceptor
@Bean public GalaxySessionInterceptor galaxySessionInterceptor()
-
breadCrumbInterceptor
@Bean public BreadCrumbInterceptor breadCrumbInterceptor()
-
analyticsHandlerInterceptor
@Bean public AnalyticsHandlerInterceptor analyticsHandlerInterceptor()
-
userSecurityInterceptor
@Bean public UserSecurityInterceptor userSecurityInterceptor()
-
localeResolver
@Bean(name="localeResolver") public org.springframework.web.servlet.LocaleResolver localeResolver()
-
cart
@Bean @Scope(value="session", proxyMode=TARGET_CLASS) public Cart cart()
-
addResourceHandlers
public void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
- Specified by:
addResourceHandlers
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
addViewControllers
public void addViewControllers(org.springframework.web.servlet.config.annotation.ViewControllerRegistry registry)
- Specified by:
addViewControllers
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
templateEngine
@Bean public org.thymeleaf.spring5.SpringTemplateEngine templateEngine()
-
viewResolver
@Bean public org.thymeleaf.spring5.view.ThymeleafViewResolver viewResolver()
-
errorViewResolver
@Bean public org.springframework.boot.autoconfigure.web.servlet.error.ErrorViewResolver errorViewResolver()
-
addInterceptors
public void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
- Specified by:
addInterceptors
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
addArgumentResolvers
public void addArgumentResolvers(java.util.List<org.springframework.web.method.support.HandlerMethodArgumentResolver> argumentResolvers)
- Specified by:
addArgumentResolvers
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
-