Fix bean conflict with spring-security

- In ObjectPostProcessorConfiguration change post prosessor
  bean name not to be same as in spring security.
- Fixes #37
This commit is contained in:
Janne Valkealahti
2015-04-16 13:45:57 +01:00
parent 5759fb2180
commit 8c481b6a21

View File

@@ -34,7 +34,9 @@ import org.springframework.statemachine.config.common.annotation.ObjectPostProce
@Configuration
public class ObjectPostProcessorConfiguration {
@Bean
private final static String POST_PROCESSOR_BEAN_ID = "org.springframework.statemachine.config.common.annotation.configuration.objectPostProcessor";
@Bean(name = POST_PROCESSOR_BEAN_ID)
public ObjectPostProcessor<Object> objectPostProcessor(AutowireCapableBeanFactory beanFactory) {
return new AutowireBeanFactoryObjectPostProcessor(beanFactory);
}