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

Gurkan Erdogdu updated OWB-357:
-------------------------------

    Fix Version/s: 1.0.0
                       (was: M4)

> WebbeansFinder should index first on ClassLoader, not singleton type
> --------------------------------------------------------------------
>
>                 Key: OWB-357
>                 URL: https://issues.apache.org/jira/browse/OWB-357
>             Project: OpenWebBeans
>          Issue Type: Bug
>    Affects Versions: M4
>         Environment: tiered classloader
>            Reporter: Eric Covener
>            Assignee: Eric Covener
>            Priority: Minor
>             Fix For: 1.0.0
>
>   Original Estimate: 3h
>  Remaining Estimate: 3h
>
> I'm finding WebbeansFinder a little difficult  to work with since it is 
> unable to easily clear all instances a / the current classloader.
> I would like to change the map to have the primary index on the classloader 
> from:
> private static Map<String, Map<ClassLoader, Object>> singletonMap = new 
> HashMap<String, Map<ClassLoader, Object>>();
> to
> private static Map<ClassLoader, Map<String, Object>> singletonMap = new 
> HashMap<ClassLoader, Map<String, Object>>();
> Currently, this only really breaks removeInstance(String name) which AFAICT 
> has no callers.  This would be replaced by e.g.
> clearInstance(ClassLoader cl)
> And most current callers of clearInstances() would I think prefer to just 
> clear an individual classloader.
> Opinions welcome, and curious if anyone wants to preserve a 
> removeInstance(String name) method.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to