camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Grzegorz Grzybek (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-8428) Cleanup some core interfaces (Consumer, Producer, EndpointAware)
Date Tue, 03 Mar 2015 09:07:04 GMT

     [ 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)

Mime
View raw message