Fix circular dependency and checkstyle on ComponentCustomizationAutoConfiguration (#280)

This commit is contained in:
Chris Bono
2022-05-25 00:05:08 -05:00
committed by GitHub
parent 1d153ae728
commit 71daaaef99
2 changed files with 6 additions and 3 deletions

View File

@@ -4,9 +4,9 @@
<parent>
<groupId>org.springframework.cloud.fn</groupId>
<artifactId>spring-functions-parent</artifactId>
<artifactId>java-functions-parent</artifactId>
<version>${revision}</version>
<relativePath>../../spring-functions-parent</relativePath>
<relativePath>../../pom.xml</relativePath>
</parent>
<artifactId>config-common</artifactId>

View File

@@ -19,6 +19,7 @@ package org.springframework.cloud.fn.common.config;
import org.springframework.beans.factory.config.BeanPostProcessor;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* An auto-configuration to expose customizer strategy beans to accept user-provided component customizers.
@@ -29,6 +30,8 @@ import org.springframework.context.annotation.Bean;
*
* @see ComponentCustomizerBeanPostProcessor
*/
// @checkstyle:off HideUtilityClassConstructor
@Configuration(proxyBeanMethods = false)
public class ComponentCustomizationAutoConfiguration {
@Bean
@@ -36,5 +39,5 @@ public class ComponentCustomizationAutoConfiguration {
static BeanPostProcessor componentCustomizerBeanPostProcessor() {
return new ComponentCustomizerBeanPostProcessor();
}
}
// @checkstyle:on