Return-Path: X-Original-To: apmail-brooklyn-dev-archive@minotaur.apache.org Delivered-To: apmail-brooklyn-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8C653174B0 for ; Fri, 7 Nov 2014 20:40:48 +0000 (UTC) Received: (qmail 70314 invoked by uid 500); 7 Nov 2014 20:40:48 -0000 Delivered-To: apmail-brooklyn-dev-archive@brooklyn.apache.org Received: (qmail 70283 invoked by uid 500); 7 Nov 2014 20:40:48 -0000 Mailing-List: contact dev-help@brooklyn.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.incubator.apache.org Delivered-To: mailing list dev@brooklyn.incubator.apache.org Received: (qmail 70272 invoked by uid 99); 7 Nov 2014 20:40:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Nov 2014 20:40:48 +0000 X-ASF-Spam-Status: No, hits=-2000.6 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 07 Nov 2014 20:40:26 +0000 Received: (qmail 68975 invoked by uid 99); 7 Nov 2014 20:40:23 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Nov 2014 20:40:23 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 8A55499D655; Fri, 7 Nov 2014 20:40:23 +0000 (UTC) From: aledsage To: dev@brooklyn.incubator.apache.org Reply-To: dev@brooklyn.incubator.apache.org References: In-Reply-To: Subject: [GitHub] incubator-brooklyn pull request: support multiple instances of the... Content-Type: text/plain Message-Id: <20141107204023.8A55499D655@tyr.zones.apache.org> Date: Fri, 7 Nov 2014 20:40:23 +0000 (UTC) X-Virus-Checked: Checked by ClamAV on apache.org Github user aledsage commented on a diff in the pull request: https://github.com/apache/incubator-brooklyn/pull/307#discussion_r20035851 --- Diff: core/src/main/java/brooklyn/util/osgi/Osgis.java --- @@ -395,6 +564,25 @@ public static boolean isExtensionBundle(Bundle bundle) { EXTENSION_PROTOCOL.equals(Urls.getProtocol(location)); } + /** Takes a string which might be of the form "symbolic-name" or "symbolic-name:version" (or something else entirely) + * and returns an array of 1 or 2 string items being the symbolic name or symbolic name and version if possible + * (or returning {@link Maybe#absent()} if not, with a suitable error message). */ + public static Maybe parseOsgiIdentifier(String symbolicNameOptionalWithVersion) { --- End diff -- This is probably worth a class for the return type, but no strong feelings. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---