camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hadrian Zbarcea (JIRA)" <>
Subject [jira] [Commented] (CAMEL-4376) Deprecate DefaultEndpoint constructors that create partially constructed endpoints
Date Thu, 25 Aug 2011 14:16:28 GMT


Hadrian Zbarcea commented on CAMEL-4376:

Yes, shouldn't change in 2.8.1.

The issue with <beean class="*Endpoint" /> is that it's not that useful to create an
endpoint that way imho. Not sure why we would allow that. Will leave it in for now.

> Deprecate DefaultEndpoint constructors that create partially constructed endpoints 
> -----------------------------------------------------------------------------------
>                 Key: CAMEL-4376
>                 URL:
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.8.0
>            Reporter: Hadrian Zbarcea
>            Assignee: Hadrian Zbarcea
>             Fix For: 2.9.0
> There are 2 DefaultEndpoint constructors that are not necessary, are not really used
(and as the doc says they should not be used anyway) that I intend to remove. One issue is
that during endpoint construction because the component and context are set later services
from the context such as type converters are not yet available which may lead to errors (or
unnecessarily complicated code).
>     protected DefaultEndpoint(String, CamelContext);
>     protected DefaultEndpoint(String);
> possibly
>     protected DefaultEndpoint();
> There are also a number of components defining constructors that just mimic those that
are not necessary and not used either. Those can be removed now. 

This message is automatically generated by JIRA.
For more information on JIRA, see:


View raw message