[ 
https://issues.apache.org/jira/browse/CAMEL-8428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Grzegorz Grzybek updated CAMEL-8428:
------------------------------------
    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"

  was:
{{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"


> Cleanup some core interfaces (Consumer, Producer, EndpointAware)
> ----------------------------------------------------------------
>
>                 Key: CAMEL-8428
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8428
>             Project: Camel
>          Issue Type: Improvement
>    Affects Versions: 2.15.0
>            Reporter: Grzegorz Grzybek
>            Priority: Minor
>
> {{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"



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to