harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lang Yang (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-6612) Implement own instance for each ThreadGroup for class IIORegistry
Date Mon, 09 Aug 2010 00:09:15 GMT
Implement own instance for each ThreadGroup for class IIORegistry
-----------------------------------------------------------------

                 Key: HARMONY-6612
                 URL: https://issues.apache.org/jira/browse/HARMONY-6612
             Project: Harmony
          Issue Type: Sub-task
          Components: Classlib
            Reporter: Lang Yang


Spec - http://download.oracle.com/javase/1.4.2/docs/api/javax/imageio/spi/IIORegistry.html#getDefaultInstance()

The method getDefaultInstance() should return the IIORegistry instance for the current ThreadGroup.


This implementation maintains a synchronized hash map to store instances for each ThreadGroup,
use ThreadGroup as the key, IIORegistry instance as the value. When the getDefaultInstance()
method is being called, we will looks up in the hashmap see if there is exist record, if there
is not then a new instance will be created and pushed to the hashmap.  

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


Mime
View raw message