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

camel-main - Exclude Abstract Classes From Package Scanning

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.3.0
    • 3.4.0
    • camel-main
    • None
    • Unknown

    Description

      My team is developing a "stand-alone" Camel Main application which utilizes route builder discovery using the package scanning feature. The current implementation instantiates any class within the package which extend RouteBuilder. If an abstract class which extends RouteBuilder is in the package, the Camel Context fails to load since the abstract class cannot be instantiated.

      Our application currently utilizes an abstract class within a "scanned" package, so we wanted to see if the scanning algorithm could be updated to exclude abstract classes.

      ThisĀ PR updates the package scanning algorithm and the corresponding test case.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dixonwh Dixon Whitmire
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: