Skip to content

Commit

Permalink
Add proxyBeanMethod=false to configuration. Fixes #50
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Baxter committed Nov 13, 2019
1 parent 51e7670 commit 318647c
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
/**
* @author Ryan Baxter
*/
@Configuration
@Configuration(proxyBeanMethods = false)
@ConditionalOnClass(name = { "reactor.core.publisher.Mono", "reactor.core.publisher.Flux",
"io.github.resilience4j.reactor.circuitbreaker.operator.CircuitBreakerOperator" })
@ConditionalOnProperty(name = "spring.cloud.circuitbreaker.resilience4j.enabled",
Expand All @@ -51,7 +51,7 @@ public ReactiveResilience4JCircuitBreakerFactory reactiveResilience4JCircuitBrea
return new ReactiveResilience4JCircuitBreakerFactory();
}

@Configuration
@Configuration(proxyBeanMethods = false)
@ConditionalOnClass(
name = { "reactor.core.publisher.Mono", "reactor.core.publisher.Flux" })
@ConditionalOnMissingClass({
Expand All @@ -71,7 +71,7 @@ public void init() {

}

@Configuration
@Configuration(proxyBeanMethods = false)
@ConditionalOnClass(name = { "reactor.core.publisher.Mono",
"reactor.core.publisher.Flux",
"io.github.resilience4j.micrometer.tagged.TaggedCircuitBreakerMetrics" })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
/**
* @author Ryan Baxter
*/
@Configuration
@Configuration(proxyBeanMethods = false)
@ConditionalOnProperty(name = "spring.cloud.circuitbreaker.resilience4j.enabled",
matchIfMissing = true)
public class Resilience4JAutoConfiguration {
Expand All @@ -49,7 +49,7 @@ public Resilience4JCircuitBreakerFactory resilience4jCircuitBreakerFactory() {
return new Resilience4JCircuitBreakerFactory();
}

@Configuration
@Configuration(proxyBeanMethods = false)
@ConditionalOnMissingClass({
"io.github.resilience4j.micrometer.tagged.TaggedCircuitBreakerMetrics",
"io.micrometer.core.instrument.MeterRegistry" })
Expand All @@ -68,7 +68,7 @@ public void init() {

}

@Configuration
@Configuration(proxyBeanMethods = false)
@ConditionalOnBean({ MeterRegistry.class })
@ConditionalOnClass(name = {
"io.github.resilience4j.micrometer.tagged.TaggedCircuitBreakerMetrics" })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public void test() {
.isTrue();
}

@Configuration
@Configuration(proxyBeanMethods = false)
@EnableAutoConfiguration
@RestController
protected static class Application {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public void testResilience4JMetricsAvailable() {
.contains("resilience4j.circuitbreaker.calls")).isTrue();
}

@Configuration
@Configuration(proxyBeanMethods = false)
@EnableAutoConfiguration
@RestController
protected static class Application {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
/**
* @author Ryan Baxter
*/
@Configuration
@Configuration(proxyBeanMethods = false)
@ConditionalOnClass(RetryTemplate.class)
public class SpringRetryAutoConfiguration {

Expand All @@ -43,7 +43,7 @@ public CircuitBreakerFactory resilience4jCircuitBreakerFactory() {
return new SpringRetryCircuitBreakerFactory();
}

@Configuration
@Configuration(proxyBeanMethods = false)
public static class SpringRetryCustomizerConfiguration {

@Autowired(required = false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public void testNormal() {
assertThat(service.normal()).isEqualTo("normal");
}

@Configuration
@Configuration(proxyBeanMethods = false)
@EnableAutoConfiguration
@RestController
protected static class Application {
Expand Down

0 comments on commit 318647c

Please sign in to comment.