You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Luca Burgazzoli (JIRA)" <ji...@apache.org> on 2017/02/09 14:31:41 UTC

[jira] [Resolved] (CAMEL-10812) FactoryFinder: make DefaultFactoryFinder and OsgiFactoryFinder thread safe

     [ https://issues.apache.org/jira/browse/CAMEL-10812?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luca Burgazzoli resolved CAMEL-10812.
-------------------------------------
    Resolution: Fixed

> FactoryFinder: make DefaultFactoryFinder and OsgiFactoryFinder thread safe
> --------------------------------------------------------------------------
>
>                 Key: CAMEL-10812
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10812
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core, camel-osgi
>            Reporter: Luca Burgazzoli
>            Assignee: Luca Burgazzoli
>             Fix For: 2.19.0
>
>
> As today DefaultFactoryFinder (and so OsgiFactoryFinder) caches the classes using a ConcurrentMap but then it does not have any synchronization to prevent multiple instantiation for the same key.
> As camel requires java 8, we can use compiteIfAbsent to make it thread safe.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)