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:28:41 UTC
[jira] [Created] (CAMEL-10812) FactoryFinder: make
DefaultFactoryFinder and OsgiFactoryFinder thread safe
Luca Burgazzoli created CAMEL-10812:
---------------------------------------
Summary: 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)