myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rudy De Busscher (Resolved) (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Resolved] (EXTVAL-137) Deregistering a class from the NameMapperFactory results in unsupported operation on CopyOnWriteArrayList
Date Wed, 02 Nov 2011 15:21:32 GMT

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

Rudy De Busscher resolved EXTVAL-137.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.2.5
                   2.0.5
    
> Deregistering a class from the NameMapperFactory results in unsupported operation on
CopyOnWriteArrayList
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: EXTVAL-137
>                 URL: https://issues.apache.org/jira/browse/EXTVAL-137
>             Project: MyFaces Extensions Validator
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2.4, 2.0.4
>            Reporter: Rudy De Busscher
>            Assignee: Rudy De Busscher
>            Priority: Minor
>             Fix For: 2.0.5, 1.2.5
>
>
> If you wan't to deregister a NameMapper from the Factory class, so that it isn't used
in your application, you get an exception because (some) factories use a CopyOnWriteArrayList
List implementation.
> For example
>         ClassMappingFactory factory = ExtValContext.getContext().getFactoryFinder()
>                 .getFactory(FactoryNames.STORAGE_MANAGER_FACTORY, ClassMappingFactory.class);
>         NameMapperAwareFactory nameMapperFactory = (NameMapperAwareFactory) factory.create(ProcessedInformationStorage.class);
>         nameMapperFactory.deny(ProcessedInformationStorageNameMapper.class);
>         // Code omitted to add the custom nameMapper

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message