[
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