Package com.aquima.web.boot
Class RootConfig
java.lang.Object
com.aquima.web.boot.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","com.blueriq.shared.**.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,org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration.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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
applicationConfiguration
(ApplicationConfiguration applicationConfiguration) com.aquima.interactions.foundation.logging.audit.IAuditEngine
void
static org.springframework.boot.builder.SpringApplicationBuilder
configure
(org.springframework.boot.builder.SpringApplicationBuilder application) org.springframework.web.servlet.DispatcherServlet
org.springframework.boot.web.servlet.ServletRegistrationBean<javax.servlet.Servlet>
org.springframework.boot.web.servlet.FilterRegistrationBean<javax.servlet.Filter>
The default dispatcher servlet is mapped to /* and is used only for serving web resources.org.springframework.web.multipart.MultipartResolver
org.springframework.web.filter.ForwardedHeaderFilter
org.springframework.boot.web.servlet.ServletListenerRegistrationBean<org.springframework.security.web.session.HttpSessionEventPublisher>
org.springframework.boot.web.servlet.FilterRegistrationBean<javax.servlet.Filter>
jsonRequestBodyValidatorFilterRegistration
(SecurityConfigProperties securityProperties, com.blueriq.component.api.i18n.IMessageProvider messageProvider) org.springframework.boot.web.servlet.FilterRegistrationBean<javax.servlet.Filter>
org.springframework.boot.web.servlet.FilterRegistrationBean<javax.servlet.Filter>
multipartRequestValidatorFilterRegistration
(SecurityConfigProperties securityProperties, com.blueriq.component.api.i18n.IMessageProvider messageProvider) resourcesLinkHelper
(ResourceUrlConfiguration configuration) resourcesRedirectHelper
(ResourceUrlConfiguration configuration) org.springframework.web.servlet.DispatcherServlet
org.springframework.boot.web.servlet.ServletRegistrationBean<javax.servlet.Servlet>
org.springframework.web.servlet.DispatcherServlet
The server dispatcher servlet is mapped to /server/* andorg.springframework.boot.web.servlet.ServletRegistrationBean<javax.servlet.Servlet>
org.springframework.boot.web.servlet.ServletContextInitializer
servletContextInitializer
(Optional<Boolean> secure) void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) void
setServletContext
(javax.servlet.ServletContext servletContext) org.springframework.boot.web.servlet.ServletRegistrationBean<javax.servlet.Servlet>
-
Field Details
-
CONTEXT_ID
The ID of the root application context.- See Also:
-
-
Constructor Details
-
RootConfig
@Autowired public RootConfig(@Value("${spring.config.additional-location:}") String configAdditionalLocation, @Value("${spring.config.location:}") String configLocation) throws MalformedURLException - Throws:
MalformedURLException
-
-
Method Details
-
configure
public static org.springframework.boot.builder.SpringApplicationBuilder configure(org.springframework.boot.builder.SpringApplicationBuilder application) -
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. -
httpSessionEventPublisher
@Bean public org.springframework.boot.web.servlet.ServletListenerRegistrationBean<org.springframework.security.web.session.HttpSessionEventPublisher> httpSessionEventPublisher() -
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() -
webServicesServlet
-
webServicesServletRegistration
@Bean public org.springframework.boot.web.servlet.ServletRegistrationBean<javax.servlet.Servlet> webServicesServletRegistration() -
resourcesLinkHelper
@Bean @Autowired public ResourcesLinkHelper resourcesLinkHelper(ResourceUrlConfiguration configuration) -
resourcesRedirectHelper
@Bean @Autowired public ResourcesRedirectHelper resourcesRedirectHelper(ResourceUrlConfiguration configuration) -
mvcLinkHelper
-
mvcRedirectHelper
-
filterMultipartResolver
@Bean public org.springframework.web.multipart.MultipartResolver filterMultipartResolver(DefaultFileUploadSettings settings) -
multipartFilter
@Bean public org.springframework.boot.web.servlet.FilterRegistrationBean<javax.servlet.Filter> multipartFilter() -
forwardedHeaderFilter
@Bean public org.springframework.web.filter.ForwardedHeaderFilter forwardedHeaderFilter() -
auditEngine
@Bean @Profile("!audit") public com.aquima.interactions.foundation.logging.audit.IAuditEngine auditEngine() -
servletContextInitializer
-
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
-
setServletContext
public void setServletContext(javax.servlet.ServletContext servletContext) - Specified by:
setServletContext
in interfaceorg.springframework.web.context.ServletContextAware
-
checkMultiTenancyLicense
@PostConstruct public void checkMultiTenancyLicense()
-