You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Eickvonder (Jira)" <ji...@apache.org> on 2020/04/12 00:09:00 UTC
[jira] [Created] (CAMEL-14883) Make CamelBeanPostProcessor
implement Ordered
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)