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

Refactoring of management code to remove cycles and clearly separate between API and impl

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.8.0
    • 2.9.0
    • camel-core
    • None
    • Patch Available
    • Unknown

    Description

      Currently the management code (org.apache.camel.management.*) contains a mix of implementation code and APIs. This leads to cycle in the management code as well as to bigger cycles involving all of camel-core.

      So I propose to do several changes:

      • move interfaces and annotations that form the API to camel.spi.management. As these are probably not used by external components or user code no compatibility classes are created
      • create new package camel.suppport for classes that implement API or SPI classes and are expected to be extended by many impl classes. classes in support may only access the camel API and SPI
      • Move EventNotifierSupport and ServiceSupport to this package. Create deprecate dummys in the old locations to avoid breaking older code
      • Move DefaultEventFactory from management to management.event

      I will post a patch shortly for review

      Attachments

        1. CAMEL-4358-1.patch
          151 kB
          Christian Schneider

        Activity

          People

            cschneider Christian Schneider
            cschneider Christian Schneider
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: