Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 95515 invoked from network); 3 Sep 2010 11:42:00 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Sep 2010 11:42:00 -0000 Received: (qmail 40895 invoked by uid 500); 3 Sep 2010 11:42:00 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 40396 invoked by uid 500); 3 Sep 2010 11:41:58 -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 40278 invoked by uid 99); 3 Sep 2010 11:41:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Sep 2010 11:41:55 +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, 03 Sep 2010 11:41:54 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o83BfXBM018460 for ; Fri, 3 Sep 2010 11:41:34 GMT Message-ID: <7486443.9931283514093630.JavaMail.jira@thor> Date: Fri, 3 Sep 2010 07:41:33 -0400 (EDT) From: "Clement Escoffier (JIRA)" To: dev@felix.apache.org Subject: [jira] Closed: (FELIX-2461) Allow specifying the targeted service interface in the @ServiceController In-Reply-To: <3524359.189091278169729451.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FELIX-2461?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Clement Escoffier closed FELIX-2461. ------------------------------------ > Allow specifying the targeted service interface in the @ServiceController > ------------------------------------------------------------------------- > > Key: FELIX-2461 > URL: https://issues.apache.org/jira/browse/FELIX-2461 > Project: Felix > Issue Type: New Feature > Components: iPOJO > Reporter: Clement Escoffier > Assignee: Clement Escoffier > Fix For: iPOJO-1.8.0 > > > The @serviceController annotation does not allow to set the targeted specification. By adding a 'specification' attribute, the controller can be assigned to control one interface only and then allowing fine tuning like: > @Component > @Provides > public class MyClass implements Service1, Service2 { > @ServiceController(specification=Service1.class) > boolean m_controller1; > @ServiceController(specification=Service2.class) > boolean m_controller2; > } > If no 'specification' set, all not-already-targeted interfaces are targeted. > @Component > @Provides > public class MyClass implements Service1, Service2, Service3 { > @ServiceController(specification=Service1.class) > boolean m_controller1; > @ServiceController // Control Service2 and Service 3 > boolean m_controller2; > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.