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 Object
Spring Boot Auto Configuration of Rewrite.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThisSpringBootAnnotationConfigProvider
adds aHttpConfigurationProvider
which scans for Rewrite annotations within the classpath.rewriteBeanNameResolver
(ApplicationContext applicationContext) org.ocpsoft.rewrite.spring.SpringExpressionLanguageProvider
FilterRegistrationBean<org.ocpsoft.rewrite.servlet.RewriteFilter>
rewriteFilterRegistrationBean
(RewriteFilterProperties rewriteFilterProperties) ThisWebFragmentRegistrationBean
is equivalent to theMETA-INF/web-fragment.xml
of therewrite-servlet.jar
.
-
Constructor Details
-
RewriteAutoConfiguration
public RewriteAutoConfiguration()
-
-
Method Details
-
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 FilterRegistrationBean<org.ocpsoft.rewrite.servlet.RewriteFilter> rewriteFilterRegistrationBean(RewriteFilterProperties rewriteFilterProperties) -
applicationContextProvider
-
rewriteExpressionLanguageProvider
@Bean public org.ocpsoft.rewrite.spring.SpringExpressionLanguageProvider rewriteExpressionLanguageProvider() -
rewriteBeanNameResolver
@Bean public SpringBootBeanNameResolver rewriteBeanNameResolver(ApplicationContext applicationContext) -
rewriteAnnotationConfigProvider
@Bean @ConfigurationProperties("joinfaces.rewrite.annotation-config-provider") public SpringBootAnnotationConfigProvider rewriteAnnotationConfigProvider()ThisSpringBootAnnotationConfigProvider
adds aHttpConfigurationProvider
which scans for Rewrite annotations within the classpath.- Returns:
- rewrite annotation scanner
-