camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luca Burgazzoli (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CAMEL-10812) FactoryFinder: make DefaultFactoryFinder and OsgiFactoryFinder thread safe
Date Thu, 09 Feb 2017 14:31:41 GMT

     [ 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)

Mime
View raw message