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

camel-core - @Consume annotation should not be marked for constructor injection

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

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.10.0
    • camel-core
    • None
    • Unknown

    Description

      This does not make sense, as its really only for methods, eg to Camel call a methods when a message is consumed.

      The @Produce is for field/constructor injection and not method.
      And same for @EndpointInject

      Attachments

        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:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment