Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 91136 invoked from network); 15 Jan 2011 18:19:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Jan 2011 18:19:07 -0000 Received: (qmail 58259 invoked by uid 500); 15 Jan 2011 18:19:07 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 58217 invoked by uid 500); 15 Jan 2011 18:19:06 -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 58209 invoked by uid 99); 15 Jan 2011 18:19:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Jan 2011 18:19:06 +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; Sat, 15 Jan 2011 18:19:06 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p0FIIk4s007747 for ; Sat, 15 Jan 2011 18:18:46 GMT Message-ID: <5078187.388051295115526125.JavaMail.jira@thor> Date: Sat, 15 Jan 2011 13:18:46 -0500 (EST) From: "Clement Escoffier (JIRA)" To: dev@felix.apache.org Subject: [jira] Commented: (FELIX-2781) Expose the implementation class as service when no interfaces are found in the hierachy In-Reply-To: <22044109.387931295115165302.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-2781?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12982143#action_12982143 ] Clement Escoffier commented on FELIX-2781: ------------------------------------------ Fixed in trunk, When a component is configured to 'provide' a service but do not implement any interfaces, the implementation class is exposed as service. > Expose the implementation class as service when no interfaces are found in the hierachy > --------------------------------------------------------------------------------------- > > Key: FELIX-2781 > URL: https://issues.apache.org/jira/browse/FELIX-2781 > Project: Felix > Issue Type: Improvement > Components: iPOJO > Reporter: Clement Escoffier > Fix For: iPOJO-1.8.0 > > > When a component does not implement any interface, iPOJO throws an error. It should just warn the user and expose the implementation class as service: > @Component > @Provides > public class Dummy { > ... > } > exposes a service with the xxx.Dummy object class -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.