Return-Path: X-Original-To: apmail-felix-users-archive@minotaur.apache.org Delivered-To: apmail-felix-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 20596D5BD for ; Sat, 10 Nov 2012 18:26:41 +0000 (UTC) Received: (qmail 67325 invoked by uid 500); 10 Nov 2012 18:26:40 -0000 Delivered-To: apmail-felix-users-archive@felix.apache.org Received: (qmail 67289 invoked by uid 500); 10 Nov 2012 18:26:40 -0000 Mailing-List: contact users-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@felix.apache.org Delivered-To: mailing list users@felix.apache.org Received: (qmail 67280 invoked by uid 99); 10 Nov 2012 18:26:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Nov 2012 18:26:40 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of fmeschbe@adobe.com designates 64.18.1.31 as permitted sender) Received: from [64.18.1.31] (HELO exprod6og113.obsmtp.com) (64.18.1.31) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 10 Nov 2012 18:26:33 +0000 Received: from outbound-smtp-2.corp.adobe.com ([193.104.215.16]) by exprod6ob113.postini.com ([64.18.5.12]) with SMTP ID DSNKUJ6cQ3ASZxb0XUvtwEutwjBkn0mjMdyQ@postini.com; Sat, 10 Nov 2012 10:26:12 PST Received: from inner-relay-1.corp.adobe.com (inner-relay-1.adobe.com [153.32.1.51]) by outbound-smtp-2.corp.adobe.com (8.12.10/8.12.10) with ESMTP id qAAIQ9HP007360 for ; Sat, 10 Nov 2012 10:26:10 -0800 (PST) Received: from nacas01.corp.adobe.com (nacas01.corp.adobe.com [10.8.189.99]) by inner-relay-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id qAAIQ9Nc001793 for ; Sat, 10 Nov 2012 10:26:09 -0800 (PST) Received: from eurcas01.eur.adobe.com (10.128.4.27) by nacas01.corp.adobe.com (10.8.189.99) with Microsoft SMTP Server (TLS) id 8.3.279.1; Sat, 10 Nov 2012 10:26:09 -0800 Received: from eurmbx01.eur.adobe.com ([10.128.4.32]) by eurcas01.eur.adobe.com ([10.128.4.27]) with mapi; Sat, 10 Nov 2012 18:26:07 +0000 From: Felix Meschberger To: "users@felix.apache.org" Date: Sat, 10 Nov 2012 18:26:04 +0000 Subject: Re: @Reference with Multiple Cardinality Thread-Topic: @Reference with Multiple Cardinality Thread-Index: Ac2/cNkTqg6gJhttRIuoabYqkf7Rrw== Message-ID: <07BA2DDD-3B6D-481F-9BB9-424D135AA08A@adobe.com> References: In-Reply-To: Accept-Language: de-DE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: de-DE, en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Hi, Generally you have to provide the bind and unbind methods in your code unle= ss the @Reference has single cardinality, in which case the methods are aut= omatically generated, or if you define the @Reference to not have bind and = unbind methods. In your case, you have to ceate the bind and unbind methods. Regards Felix Am 10.11.2012 um 17:39 schrieb David G.: > Can @Reference annotations be used to directly gain access to multiple Se= rvice objects?=20 >=20 > I tried the following, using List, Arrays, and Vectors as the data types = to no avail; >=20 > @Reference(cardinality=3DReferenceCardinality.OPTIONAL_MULTIPLE) > List someServices; >=20 > ...The build complained about the bind and unbind methods not undefined (= which is true in my experiment class).=20 >=20 > Are bind/unbind required to access multiple services from a single refere= nce; "manually" retrieving service objects via service refs? >=20 > If there is a shortcut as described above using @Reference (or some other= mechanism), how is the order determined (ranking?)=20 >=20 > All i could find wrt to using @Reference is on the felix site [1] ..=20 >=20 > Thanks! >=20 > [1] http://felix.apache.org/site/scr-annotations.html#SCRAnnotations-Refe= rence >=20 > --=20 > David Gonzalez > Sent with Sparrow (http://www.sparrowmailapp.com/?sig) >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@felix.apache.org For additional commands, e-mail: users-help@felix.apache.org