Class 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 Detail

      • IridaUIWebConfig

        public IridaUIWebConfig()
    • Method Detail

      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
                                   throws org.springframework.beans.BeansException
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
        Throws:
        org.springframework.beans.BeansException
      • 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 interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
      • addViewControllers

        public void addViewControllers​(org.springframework.web.servlet.config.annotation.ViewControllerRegistry registry)
        Specified by:
        addViewControllers in interface org.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 interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
      • addArgumentResolvers

        public void addArgumentResolvers​(java.util.List<org.springframework.web.method.support.HandlerMethodArgumentResolver> argumentResolvers)
        Specified by:
        addArgumentResolvers in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer