myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rudy De Busscher (Created) (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Created] (EXTVAL-137) Deregistering a class from the NameMapperFactory results in unsupported operation on CopyOnWriteArrayList
Date Wed, 02 Nov 2011 15:15:32 GMT
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: 2.0.4, 1.2.4
            Reporter: Rudy De Busscher
            Assignee: Rudy De Busscher
            Priority: Minor


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