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

Extend Camel Context functionnalities through the Extension mechanism

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 4.0
    • came-core
    • None
    • Unknown

    Description

      This commit introduces some new API to the ExtendedCamelContext which is fine but in order to reduce the APIs we could evaluate to extend the functionalities of the context through the extension mechanism, i.e. the same functionality of the commit could be implemented as:

          context.getExtension(RestBindingJaxbDataFormatFactory.class)
              ifPresent(extensions -> extension.setupJaxb(...))
      

      Extension can then be discovered through:

      1. internal-cache
      2. registry
      3. factory finder (file)

      We can use a class name convention for the factory file:

           META-INF/services/org/apache/camel/services/RestBindingJaxbDataFormatFactory
      

      or

        
          META-INF/services/org/apache/camel/services/rest-binding-jaxb-dataormat-factory
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            lb Luca Burgazzoli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: