Added proxyBeanMethods = false to configuration. Fixes #211
This commit is contained in:
@@ -59,7 +59,7 @@ import org.springframework.util.PathMatcher;
|
||||
* @author Spencer Gibb
|
||||
* @author Dave Syer
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnBusEnabled
|
||||
@EnableBinding(SpringCloudBusClient.class)
|
||||
@EnableConfigurationProperties(BusProperties.class)
|
||||
@@ -178,7 +178,7 @@ public class BusAutoConfiguration implements ApplicationEventPublisherAware {
|
||||
}
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
protected static class MatcherConfiguration {
|
||||
|
||||
@BusPathMatcher
|
||||
@@ -201,7 +201,7 @@ public class BusAutoConfiguration implements ApplicationEventPublisherAware {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnClass({ Endpoint.class })
|
||||
@ConditionalOnBean(HttpTraceRepository.class)
|
||||
@ConditionalOnProperty(value = "spring.cloud.bus.trace.enabled",
|
||||
@@ -216,7 +216,7 @@ public class BusAutoConfiguration implements ApplicationEventPublisherAware {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnClass(EnvironmentManager.class)
|
||||
@ConditionalOnBean(EnvironmentManager.class)
|
||||
protected static class BusEnvironmentConfiguration {
|
||||
@@ -228,7 +228,7 @@ public class BusAutoConfiguration implements ApplicationEventPublisherAware {
|
||||
return new EnvironmentChangeListener();
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnClass(Endpoint.class)
|
||||
protected static class EnvironmentBusEndpointConfiguration {
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ import org.springframework.context.annotation.Configuration;
|
||||
* @author Spencer Gibb
|
||||
* @author Dave Syer
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableConfigurationProperties(BusProperties.class)
|
||||
public class BusPropertiesAutoConfiguration {
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ import org.springframework.context.annotation.Configuration;
|
||||
/**
|
||||
* @author Ryan Baxter
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnBusEnabled
|
||||
@AutoConfigureAfter(
|
||||
name = { "org.springframework.cloud.autoconfigure.RefreshAutoConfiguration" })
|
||||
@@ -45,7 +45,7 @@ public class BusRefreshAutoConfiguration {
|
||||
return new RefreshListener(contextRefresher);
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnBean(ContextRefresher.class)
|
||||
@ConditionalOnClass(
|
||||
name = { "org.springframework.boot.actuate.endpoint.annotation.Endpoint",
|
||||
|
||||
@@ -55,7 +55,7 @@ import org.springframework.util.MimeTypeUtils;
|
||||
* @author Donovan Muller
|
||||
* @author Stefan Pfeiffer
|
||||
*/
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnBusEnabled
|
||||
@ConditionalOnClass({ RefreshBusEndpoint.class, ObjectMapper.class })
|
||||
@AutoConfigureBefore({ BusAutoConfiguration.class, JacksonAutoConfiguration.class })
|
||||
|
||||
@@ -310,13 +310,13 @@ public class BusAutoConfigurationTests {
|
||||
assertThat(newServiceId).isEqualTo(originalServiceId);
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableAutoConfiguration
|
||||
protected static class RefreshConfig {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableAutoConfiguration
|
||||
@Import({ MessageConsumer.class, BusAutoConfiguration.class,
|
||||
TestSupportBinderAutoConfiguration.class,
|
||||
@@ -349,7 +349,7 @@ public class BusAutoConfigurationTests {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@MessageEndpoint
|
||||
protected static class MessageConsumer {
|
||||
|
||||
@@ -359,7 +359,7 @@ public class BusAutoConfigurationTests {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableAutoConfiguration
|
||||
@Import({ MessageConsumer.class, BusAutoConfiguration.class,
|
||||
TestSupportBinderAutoConfiguration.class,
|
||||
@@ -376,7 +376,7 @@ public class BusAutoConfigurationTests {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
protected static class SentMessageConfiguration
|
||||
implements ApplicationListener<SentApplicationEvent> {
|
||||
|
||||
@@ -392,7 +392,7 @@ public class BusAutoConfigurationTests {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
protected static class AckMessageConfiguration
|
||||
implements ApplicationListener<AckRemoteApplicationEvent> {
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ public class ConditionalOnBusEnabledTests {
|
||||
this.context.refresh();
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnBusEnabled
|
||||
protected static class MyBusEnabledConfig {
|
||||
|
||||
|
||||
@@ -136,26 +136,26 @@ public class RemoteApplicationEventScanTests {
|
||||
expectedRegisterdClassesAsList.add(UnknownRemoteApplicationEvent.class);
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@RemoteApplicationEventScan
|
||||
static class DefaultConfig {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@RemoteApplicationEventScan({ "com.acme", "test.foo.bar" })
|
||||
static class ValueConfig {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@RemoteApplicationEventScan(
|
||||
basePackages = { "com.acme", "test.foo.bar", "fizz.buzz" })
|
||||
static class BasePackagesConfig {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@RemoteApplicationEventScan(basePackageClasses = TestRemoteApplicationEvent.class)
|
||||
static class BasePackageClassesConfig {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user