Return-Path: Delivered-To: apmail-incubator-whirr-dev-archive@minotaur.apache.org Received: (qmail 3040 invoked from network); 2 Jul 2010 23:12:14 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Jul 2010 23:12:14 -0000 Received: (qmail 81614 invoked by uid 500); 2 Jul 2010 23:12:14 -0000 Delivered-To: apmail-incubator-whirr-dev-archive@incubator.apache.org Received: (qmail 81579 invoked by uid 500); 2 Jul 2010 23:12:14 -0000 Mailing-List: contact whirr-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: whirr-dev@incubator.apache.org Delivered-To: mailing list whirr-dev@incubator.apache.org Received: (qmail 81571 invoked by uid 99); 2 Jul 2010 23:12:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Jul 2010 23:12:14 +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; Fri, 02 Jul 2010 23:12:11 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o62NBnQt014785 for ; Fri, 2 Jul 2010 23:11:50 GMT Message-ID: <7940404.183841278112309823.JavaMail.jira@thor> Date: Fri, 2 Jul 2010 19:11:49 -0400 (EDT) From: "Tom White (JIRA)" To: whirr-dev@incubator.apache.org Subject: [jira] Commented: (WHIRR-53) Adopt the standard Java SPI interface In-Reply-To: <20675055.181661278104629959.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/WHIRR-53?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12884850#action_12884850 ] Tom White commented on WHIRR-53: -------------------------------- http://java.sun.com/javase/6/docs/api/java/util/ServiceLoader.html is the class to use. > Adopt the standard Java SPI interface > ------------------------------------- > > Key: WHIRR-53 > URL: https://issues.apache.org/jira/browse/WHIRR-53 > Project: Whirr > Issue Type: Improvement > Components: core > Reporter: Tom White > Assignee: Tom White > Fix For: 0.1.0 > > > The SPI implemented in WHIRR-47 makes it difficult to generate a executable JAR (for a CLI in WHIRR-33) since the whirr.properties files clobber each other. By implementing an SPI described in http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html#Service%20Provider (or http://java.sun.com/j2se/1.4.2/docs/guide/sound/programmer_guide/chapter13.html) we can use the Maven Shade plugin to produce an executable JAR which avoids this problem (see http://maven.apache.org/plugins/maven-shade-plugin/examples/resource-transformers.html). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.