Autoconfigurable correlationScopeDecorator doesn't use builder from Spring Context
akrikheli opened this issue · 1 comments
akrikheli commented
The correlationScopeDecorator creates CorrelationScopeDecorator.Builder via new operator and fully ignores builder bean:
Looks like bug because there's conditional
@ConditionalOnBean(CorrelationScopeDecorator.Builder.class)
over this bean.
Thus there's no way to customize builder for correlationScopeDecorator (for example if we want to add custom SingleCorrelationField with flushing on update).
I suggest to inject the builder as method parameter in java configuration of correlationScopeDecorator bean and use it.
marcingrzejszczak commented
fixed via #2285