Eickvonder created CAMEL-14883:
----------------------------------
Summary: Make CamelBeanPostProcessor implement Ordered
Key: CAMEL-14883
URL: https://issues.apache.org/jira/browse/CAMEL-14883
Project: Camel
Issue Type: Improvement
Components: camel-spring
Affects Versions: 3.2.0
Reporter: Eickvonder
The CamelBeanPostProcessor does not implement the Ordered interface provided by
Spring.
According to Spring documentation it is recommended to do so:
{panel:title=[https://docs.spring.io/spring/docs/current/spring-framework-reference/core.html#beans-factory-extension-bpp]}
If you write your own {{BeanPostProcessor}}, you should consider implementing
the {{Ordered}} interface, too
{panel}
And doing not so may break certain things (see e.g.
https://github.com/spring-projects/spring-framework/issues/24058) but Spring
guys won't fix that to keep backwards-compatibility. So I would suggest to let
the CamelBeanPostProcessor implement the Ordered interface, e.g. with lowest
priority or with configurable priority. The actual value is irrelevant, the
issue described in
https://github.com/spring-projects/spring-framework/issues/24058 only occurs if
a post processor exists that does not implement the ordered interface.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)