Fix Gemfire ClientConfig BeanFactoryPostProcessor

@Bean method ClientConfig.propertySourcesPlaceholderConfigurer was
non-static and returns an object assignable to Spring's
BeanFactoryPostProcessor interface. This will result in a failure to
process annotations such as @Autowired, @Resource and @PostConstruct
within the method's declaring @Configuration class.

This commit makes the method static to avoid the problem.
This commit is contained in:
Rob Winch
2016-06-29 21:01:30 -05:00
parent dc553104c6
commit 7e41e40762

View File

@@ -68,7 +68,7 @@ public class ClientConfig {
}
@Bean
PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() {
static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() {
return new PropertySourcesPlaceholderConfigurer();
}