Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 55730 invoked from network); 23 May 2009 07:50:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 May 2009 07:50:05 -0000 Received: (qmail 42491 invoked by uid 500); 23 May 2009 07:50:17 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 42413 invoked by uid 500); 23 May 2009 07:50:17 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 42402 invoked by uid 99); 23 May 2009 07:50:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 May 2009 07:50:16 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 May 2009 07:50:06 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A7BCC234C051 for ; Sat, 23 May 2009 00:49:45 -0700 (PDT) Message-ID: <1408930250.1243064985686.JavaMail.jira@brutus> Date: Sat, 23 May 2009 00:49:45 -0700 (PDT) From: "Clement Escoffier (JIRA)" To: dev@felix.apache.org Subject: [jira] Updated: (FELIX-1159) iPOJO instance declaration should be able to select the Factory version In-Reply-To: <1693554673.1242378405563.JavaMail.jira@brutus> 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/FELIX-1159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Clement Escoffier updated FELIX-1159: ------------------------------------- I improve the fix to add the annotation support. Now, the @Component annotation supports the 'version' attribute: @Component(version="1.0.0", ...) public class Foo { // ... } > iPOJO instance declaration should be able to select the Factory version > ----------------------------------------------------------------------- > > Key: FELIX-1159 > URL: https://issues.apache.org/jira/browse/FELIX-1159 > Project: Felix > Issue Type: Improvement > Components: iPOJO > Affects Versions: iPOJO-1.2.0 > Reporter: Clement Escoffier > Assignee: Clement Escoffier > Original Estimate: 0h > Remaining Estimate: 0h > > Currently, when declaring an instance, the factory is only selected by its name. This can be tricky when several version are available. > iPOJO instance declaration should support a 'version' attribute specifying the required version (exact match). This attribute will be exposed by the factory service (if specified in its declaration). So this will result into something like: > > and > > Be aware that this feature is not compatible with the configuration admin that select the ManagedServiceFactory based on its PID (i.e. factory name). > This request for feature comes from the following mail: > http://www.nabble.com/iPojo---How-to-create-several-instances-of-the-same-component-installed-in-different-versions-tp23544877p23544877.html -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.