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 01:23:00 UTC
[jira] [Commented] (CAMEL-14883) Make CamelBeanPostProcessor
implement Ordered
[ https://issues.apache.org/jira/browse/CAMEL-14883?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17081601#comment-17081601 ]
Eickvonder commented on CAMEL-14883:
------------------------------------
Pull Request: https://github.com/apache/camel/pull/3731
> 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
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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 not doing 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)