org.molgenis.omx
Class WebAppConfig

java.lang.Object
  extended by org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
      extended by org.molgenis.omx.WebAppConfig
All Implemented Interfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer

@Configuration
@EnableWebMvc
@EnableAsync
@ComponentScan(value="org.molgenis")
@Import(value={DatabaseConfig.class,org.molgenis.omx.OmxConfig.class,org.molgenis.elasticsearch.config.EmbeddedElasticSearchConfig.class,org.molgenis.dataexplorer.config.DataExplorerConfig.class,org.molgenis.search.SearchSecurityConfig.class})
public class WebAppConfig
extends org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter


Nested Class Summary
static class WebAppConfig.RootController
          Redirects '/' to the Home plugin
 
Constructor Summary
WebAppConfig()
           
 
Method Summary
 void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
           
 ApplicationContextProvider applicationContextProvider()
          Bean that allows referencing Spring managed beans from Java code which is not managed by Spring
 void configureMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
           
 org.springframework.context.ApplicationListener<?> databasePopulator()
           
 FileStore fileStore()
           
 org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer freeMarkerConfigurer()
          Configure freemarker.
 org.springframework.mail.javamail.JavaMailSender mailSender()
           
 org.springframework.web.multipart.MultipartResolver multipartResolver()
           
static org.springframework.context.support.PropertySourcesPlaceholderConfigurer properties()
           
 org.springframework.web.servlet.ViewResolver viewResolver()
          Enable spring freemarker viewresolver.
 
Methods inherited from class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
addArgumentResolvers, addFormatters, addInterceptors, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, getMessageCodesResolver, getValidator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebAppConfig

public WebAppConfig()
Method Detail

addResourceHandlers

public void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
Specified by:
addResourceHandlers in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
Overrides:
addResourceHandlers in class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter

configureMessageConverters

public void configureMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
Specified by:
configureMessageConverters in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
Overrides:
configureMessageConverters in class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter

databasePopulator

@Bean
public org.springframework.context.ApplicationListener<?> databasePopulator()

properties

@Bean
public static org.springframework.context.support.PropertySourcesPlaceholderConfigurer properties()

mailSender

@Bean
public org.springframework.mail.javamail.JavaMailSender mailSender()

fileStore

@Bean
public FileStore fileStore()

applicationContextProvider

@Bean
public ApplicationContextProvider applicationContextProvider()
Bean that allows referencing Spring managed beans from Java code which is not managed by Spring

Returns:

viewResolver

@Bean
public org.springframework.web.servlet.ViewResolver viewResolver()
Enable spring freemarker viewresolver. All freemarker template names should end with '.ftl'


freeMarkerConfigurer

@Bean
public org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer freeMarkerConfigurer()
Configure freemarker. All freemarker templates should be on the classpath in a package called 'freemarker'


multipartResolver

@Bean
public org.springframework.web.multipart.MultipartResolver multipartResolver()


Copyright © 2013. All Rights Reserved.