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

Cleanup some core interfaces (Consumer, Producer, EndpointAware)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.15.0
    • 2.15.0
    • None
    • None
    • Unknown

    Description

      org.apache.camel.Consumer and org.apache.camel.Producer interfaces contain this method:

      • Endpoint getEndpoint()

      But there's also org.apache.camel.EndpointAware for that purpose.
      Producer extends it (so it's own "getEndpoint()" is duplicate). Consumer could extend this interface too.

      So, I think we could:

      • remove getEndpoint from both Customer and Producer interfaces
      • change Consumer to extend EndpointAware

      from dev's POV the only (OO) change would be that Customer will become "endpoint aware"

      Attachments

        Activity

          People

            ggrzybek Grzegorz Grzybek
            ggrzybek Grzegorz Grzybek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: