[
https://issues.apache.org/jira/browse/CAMEL-4376?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13090762#comment-13090762
]
Claus Ibsen commented on CAMEL-4376:
------------------------------------
The default ctr should definitely be there as people use that to create
endpoints in eg spring xml file
For example
<bean id="myEndpoint" class="org.apache.camel....SedaEndpoint">
< set some options here >
</bean>
> Deprecate DefaultEndpoint constructors that create partially constructed
> endpoints
> -----------------------------------------------------------------------------------
>
> Key: CAMEL-4376
> URL: https://issues.apache.org/jira/browse/CAMEL-4376
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Affects Versions: 2.8.0
> Reporter: Hadrian Zbarcea
> Assignee: Hadrian Zbarcea
> Fix For: 2.8.1, 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: http://www.atlassian.com/software/jira