Class RootConfig

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware

    @RootConfiguration(basePackages={"com.aquima.web","com.blueriq.web","com.blueriq.component.**.config","com.blueriq.plugin.**.config","com.blueriq.module.**.config","com.blueriq.dcm.**.config","com.aquima.plugin.**.config","com.blueriq.aggregate.**.config"})
    @EnableAutoConfiguration(exclude={org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration.class,org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration.class,org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration.class,org.springframework.boot.autoconfigure.web.servlet.DispatcherServletAutoConfiguration.class,org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration.class,org.springframework.boot.autoconfigure.ldap.LdapAutoConfiguration.class,org.springframework.boot.actuate.autoconfigure.web.server.ManagementContextAutoConfiguration.class,org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration.class,org.springframework.boot.autoconfigure.data.redis.RedisRepositoriesAutoConfiguration.class,org.springframework.boot.autoconfigure.quartz.QuartzAutoConfiguration.class,org.springframework.boot.autoconfigure.amqp.RabbitAutoConfiguration.class,org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration.class})
    @ImportResource("classpath*:aquima-plugin-context.xml")
    public class RootConfig
    extends Object
    implements org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware
    The configuration of the root application context.
    Since:
    10.0
    • Method Detail

      • configure

        public static org.springframework.boot.builder.SpringApplicationBuilder configure​(org.springframework.boot.builder.SpringApplicationBuilder application)
      • applicationConfiguration

        @Autowired
        public void applicationConfiguration​(ApplicationConfiguration applicationConfiguration)
      • filterDelegateHandlerProxy

        @Bean
        public org.springframework.boot.web.servlet.FilterRegistrationBean<javax.servlet.Filter> filterDelegateHandlerProxy()
        The default dispatcher servlet is mapped to /* and is used only for serving web resources.
      • jsonRequestBodyValidatorFilterRegistration

        @Bean
        public org.springframework.boot.web.servlet.FilterRegistrationBean<javax.servlet.Filter> jsonRequestBodyValidatorFilterRegistration​(SecurityConfigProperties securityProperties,
                                                                                                                                            com.blueriq.component.api.i18n.IMessageProvider messageProvider)
      • multipartRequestValidatorFilterRegistration

        @Bean
        public org.springframework.boot.web.servlet.FilterRegistrationBean<javax.servlet.Filter> multipartRequestValidatorFilterRegistration​(SecurityConfigProperties securityProperties,
                                                                                                                                             com.blueriq.component.api.i18n.IMessageProvider messageProvider)
      • defaultServlet

        @Bean
        public org.springframework.web.servlet.DispatcherServlet defaultServlet()
      • defaultServletRegistration

        @Bean
        public org.springframework.boot.web.servlet.ServletRegistrationBean<javax.servlet.Servlet> defaultServletRegistration()
      • serverServlet

        @Bean
        public org.springframework.web.servlet.DispatcherServlet serverServlet()
        The server dispatcher servlet is mapped to /server/* and
      • serverServletRegistration

        @Bean
        public org.springframework.boot.web.servlet.ServletRegistrationBean<javax.servlet.Servlet> serverServletRegistration()
      • restApiServlet

        @Bean
        public org.springframework.web.servlet.DispatcherServlet restApiServlet()
      • restApiServletRegistration

        @Bean
        public org.springframework.boot.web.servlet.ServletRegistrationBean<javax.servlet.Servlet> restApiServletRegistration()
      • webServicesServletRegistration

        @Bean
        public org.springframework.boot.web.servlet.ServletRegistrationBean<javax.servlet.Servlet> webServicesServletRegistration()
      • multipartFilter

        @Bean
        public org.springframework.boot.web.servlet.FilterRegistrationBean<javax.servlet.Filter> multipartFilter()
      • filterMultipartResolver

        @Bean
        public org.springframework.web.multipart.MultipartResolver filterMultipartResolver​(DefaultFileUploadSettings settings)
      • forwardedHeaderFilter

        @Bean
        public org.springframework.web.filter.ForwardedHeaderFilter forwardedHeaderFilter()
      • 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
      • setServletContext

        public void setServletContext​(javax.servlet.ServletContext servletContext)
        Specified by:
        setServletContext in interface org.springframework.web.context.ServletContextAware
      • checkMultiTenancyLicense

        @PostConstruct
        public void checkMultiTenancyLicense()