harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Hindess (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-6553) Implement ServiceRegistry.lookupProviders(class)
Date Mon, 16 Aug 2010 22:02:28 GMT

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

Mark Hindess resolved HARMONY-6553.

    Fix Version/s: 5.0M15
       Resolution: Fixed

Applied at r986136.  I also made a minor modification the imageio test ant task to ensure
the META-INF entries get added to the jar in the hdk.

> Implement ServiceRegistry.lookupProviders(class)
> ------------------------------------------------
>                 Key: HARMONY-6553
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6553
>             Project: Harmony
>          Issue Type: Sub-task
>            Reporter: Lang Yang
>            Assignee: Mark Hindess
>             Fix For: 5.0M15
>         Attachments: HARMONY-6553-v3.diff
> spec - http://java.sun.com/j2se/1.4.2/docs/api/javax/imageio/spi/ServiceRegistry.html#lookupProviders(java.lang.Class)
> I have created a new Iterator - "private static class LookupProvidersIterator implements
Iterator" for this method. The iterator needs to instantiates new objects and throws ServiceConfigurationError
exception at runtime, so we have to use customized Iterator.
> The flow: 
> 1. call ClassLoader.getResourse(String) to get a set of provider-configuration files
that related to the specified class.
> 2. The iterator parses all provider-configuration files to get the names of provider
>     - Provider-Configuration File spec: http://java.sun.com/j2se/1.5.0/docs/guide/jar/jar.html#Provider
Configuration File
> 3. In LookupProvidersIterator.next(), instantiate objects

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

View raw message