From commits-return-63509-apmail-harmony-commits-archive=harmony.apache.org@harmony.apache.org Thu Aug 12 03:56:43 2010 Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 82852 invoked from network); 12 Aug 2010 03:56:43 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Aug 2010 03:56:43 -0000 Received: (qmail 3765 invoked by uid 500); 12 Aug 2010 03:56:43 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 3688 invoked by uid 500); 12 Aug 2010 03:56:41 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 3572 invoked by uid 99); 12 Aug 2010 03:56:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Aug 2010 03:56:39 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Aug 2010 03:56:39 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o7C3uIYB020667 for ; Thu, 12 Aug 2010 03:56:18 GMT Message-ID: <19949277.296461281585378895.JavaMail.jira@thor> Date: Wed, 11 Aug 2010 23:56:18 -0400 (EDT) From: "Lang Yang (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-6553) Implement ServiceRegistry.lookupProviders(class) In-Reply-To: <31401344.861276575143144.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HARMONY-6553?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lang Yang updated HARMONY-6553: ------------------------------- Attachment: (was: TestLookupProviders.java) > 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 > > 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 classes > - 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.