Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
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"