Class RewriteAutoConfiguration
- java.lang.Object
-
- org.joinfaces.autoconfigure.rewrite.RewriteAutoConfiguration
-
@AutoConfiguration(after=org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration.class) @EnableConfigurationProperties({RewriteProperties.class,RewriteFilterProperties.class}) @ConditionalOnClass(org.ocpsoft.rewrite.servlet.RewriteFilter.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(RewriteProperties rewriteProperties)
ThisSpringBootAnnotationConfigProvider
adds aHttpConfigurationProvider
which scans for Rewrite annotations within the classpath.SpringBootBeanNameResolver
rewriteBeanNameResolver(org.springframework.context.ApplicationContext applicationContext)
org.ocpsoft.rewrite.spring.SpringExpressionLanguageProvider
rewriteExpressionLanguageProvider()
org.springframework.boot.web.servlet.FilterRegistrationBean<org.ocpsoft.rewrite.servlet.RewriteFilter>
rewriteFilterRegistrationBean(RewriteFilterProperties rewriteFilterProperties)
WebFragmentRegistrationBean
rewriteWebFragmentRegistrationBean()
ThisWebFragmentRegistrationBean
is equivalent to theMETA-INF/web-fragment.xml
of therewrite-servlet.jar
.
-
-
-
Method Detail
-
rewriteWebFragmentRegistrationBean
@Bean @DependsOn("applicationContextProvider") public WebFragmentRegistrationBean rewriteWebFragmentRegistrationBean()
ThisWebFragmentRegistrationBean
is equivalent to theMETA-INF/web-fragment.xml
of therewrite-servlet.jar
.- Returns:
- rewriteWebFragmentRegistrationBean
-
rewriteFilterRegistrationBean
@Bean @DependsOn("applicationContextProvider") @ConditionalOnMissingFilterBean public org.springframework.boot.web.servlet.FilterRegistrationBean<org.ocpsoft.rewrite.servlet.RewriteFilter> rewriteFilterRegistrationBean(RewriteFilterProperties rewriteFilterProperties)
-
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(RewriteProperties rewriteProperties)
ThisSpringBootAnnotationConfigProvider
adds aHttpConfigurationProvider
which scans for Rewrite annotations within the classpath.- Parameters:
rewriteProperties
- TheConfigurationProperties
for Rewrite.- Returns:
- rewrite annotation scanner
-
-