Class RewriteAutoConfiguration
- java.lang.Object
-
- org.joinfaces.autoconfigure.rewrite.RewriteAutoConfiguration
-
@Configuration @EnableConfigurationProperties(RewriteProperties.class) @ConditionalOnClass(org.ocpsoft.rewrite.servlet.RewriteFilter.class) @AutoConfigureAfter(org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration.class) @ConditionalOnWebApplication(type=SERVLET) public class RewriteAutoConfiguration extends java.lang.Object
Spring Boot Auto Configuration of Rewrite.
-
-
Constructor Summary
Constructors Constructor Description RewriteAutoConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApplicationContextProvider
applicationContextProvider()
SpringBootAnnotationConfigProvider
rewriteAnnotationConfigProvider()
ThisSpringBootAnnotationConfigProvider
adds aHttpConfigurationProvider
which scans for Rewrite annotations within the classpath.SpringBootBeanNameResolver
rewriteBeanNameResolver(org.springframework.context.ApplicationContext applicationContext)
org.ocpsoft.rewrite.spring.SpringExpressionLanguageProvider
rewriteExpressionLanguageProvider()
WebServerFactoryCustomizer<ConfigurableServletWebServerFactory>
rewriteWebServerFactoryCustomizer()
ThisWebServerFactoryCustomizer
adds aServletContextInitializer
to the embedded servlet-container which is equivalent to rewrite's ownMETA-INF/web-fragment.xml
.
-
-
-
Method Detail
-
rewriteWebServerFactoryCustomizer
@DependsOn("applicationContextProvider") @Bean public WebServerFactoryCustomizer<ConfigurableServletWebServerFactory> rewriteWebServerFactoryCustomizer()
ThisWebServerFactoryCustomizer
adds aServletContextInitializer
to the embedded servlet-container which is equivalent to rewrite's ownMETA-INF/web-fragment.xml
.- Returns:
- rewrite web server factory customizer
-
applicationContextProvider
@Bean public ApplicationContextProvider applicationContextProvider()
-
rewriteExpressionLanguageProvider
@Bean public org.ocpsoft.rewrite.spring.SpringExpressionLanguageProvider rewriteExpressionLanguageProvider()
-
rewriteBeanNameResolver
@Bean public SpringBootBeanNameResolver rewriteBeanNameResolver(org.springframework.context.ApplicationContext applicationContext)
-
rewriteAnnotationConfigProvider
@Bean public SpringBootAnnotationConfigProvider rewriteAnnotationConfigProvider()
ThisSpringBootAnnotationConfigProvider
adds aHttpConfigurationProvider
which scans for Rewrite annotations within the classpath.- Returns:
- rewrite annotation scanner
-
-