Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-14883

Make CamelBeanPostProcessor implement Ordered

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.2.0
    • 3.3.0
    • camel-spring
    • None
    • Unknown

    Description

      The CamelBeanPostProcessor does not implement the Ordered interface provided by Spring.

      According to Spring documentation it is recommended to do so:

      If you write your own BeanPostProcessor, you should consider implementing the Ordered interface, too

      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.
       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              eicki Eickvonder
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m