You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Commented) (JIRA)" <ji...@apache.org> on 2012/04/16 14:28:17 UTC

[jira] [Commented] (CAMEL-5177) Avoid parsing URI each time when getting uri from endpoint

    [ https://issues.apache.org/jira/browse/CAMEL-5177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13254656#comment-13254656 ] 

Claus Ibsen commented on CAMEL-5177:
------------------------------------

There is also a slight other improvement to avoid calling lazy eval methods in toString/hashCode/equals (such as getEndpointUri), as the JVM may invoked these before the endpoint has been fully initialized.
                
> Avoid parsing URI each time when getting uri from endpoint
> ----------------------------------------------------------
>
>                 Key: CAMEL-5177
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5177
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.9.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.9.2, 2.10.0
>
>
> In Camel 2.9, a new EndpointConfiguration was introduced, which has more fine grained details about an URI.
> However the getEndpointUri method on Endpoint is now parsing the uri on each call, this is not needed, and is also unnecessary overhead.
> We should parse this once.
> Also Camel's built-in type converter should be used during the parsing, and not just the hardcoded PropertyEditorTypeConverter which is to be considered removed as its not
> - thread safe
> - causes unforeseen side effects when 3rd party projects register property converter

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira