You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by Hadrian Zbarcea <hz...@gmail.com> on 2011/08/24 23:06:15 UTC

[HEADS-UP] Removing error prone DefaultEndpoint constructors

Hi,

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

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.

Not sure if they should be just deprecated for now and removed probably 
in 3.0 or just remove them now. I'll create a jira for this. Thoughts?

Hadrian