Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 21467 invoked from network); 15 Jun 2010 05:12:47 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Jun 2010 05:12:47 -0000 Received: (qmail 7991 invoked by uid 500); 15 Jun 2010 04:12:46 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 7894 invoked by uid 500); 15 Jun 2010 04:12:44 -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 7878 invoked by uid 99); 15 Jun 2010 04:12:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jun 2010 04:12:43 +0000 X-ASF-Spam-Status: No, hits=-1520.1 required=10.0 tests=ALL_TRUSTED,AWL 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; Tue, 15 Jun 2010 04:12:43 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5F4CNPk005759 for ; Tue, 15 Jun 2010 04:12:23 GMT Message-ID: <31401344.861276575143144.JavaMail.jira@thor> Date: Tue, 15 Jun 2010 00:12:23 -0400 (EDT) From: "Lang Yang (JIRA)" To: commits@harmony.apache.org Subject: [jira] Created: (HARMONY-6553) Implement ServiceRegistry.lookupProviders(class) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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.