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

components - Automatic autowire by type - Specify which options support this

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.7.0
    • camel-core, tooling
    • None
    • Unknown

    Description

      We could add to @Metadata so we can markup on components which options can be autowried automatic by its type, but looking up in registry for 1 instance of this type, and use it automatic.

      Such as JMS connection factory, JDBC DataSources, AWS Clients, Infinispan Client, etc.

      We had some code in camel-main in 3.6 or older, but this code was "too magic" and introspected all options and whatnot. And this causing longer startup and more memory. And each component generated metadata that took up memory space. That essentially was waste for 99% use cases.

      But if we have this marked up for specific options only, then we can make this faster and light.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment