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)

Reply via email to