Return-Path: X-Original-To: apmail-felix-dev-archive@www.apache.org Delivered-To: apmail-felix-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C5B0F10929 for ; Thu, 25 Apr 2013 10:16:18 +0000 (UTC) Received: (qmail 8798 invoked by uid 500); 25 Apr 2013 10:16:18 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 8694 invoked by uid 500); 25 Apr 2013 10:16:18 -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 8308 invoked by uid 99); 25 Apr 2013 10:16:17 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Apr 2013 10:16:17 +0000 Date: Thu, 25 Apr 2013 10:16:17 +0000 (UTC) From: "Carsten Ziegeler (JIRA)" To: dev@felix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (FELIX-4035) Issue warning messages when metatype should be created, but no properties are defined MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FELIX-4035?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Carsten Ziegeler reassigned FELIX-4035: --------------------------------------- Assignee: Carsten Ziegeler =20 > Issue warning messages when metatype should be created, but no properties= are defined > -------------------------------------------------------------------------= ------------ > > Key: FELIX-4035 > URL: https://issues.apache.org/jira/browse/FELIX-4035 > Project: Felix > Issue Type: Improvement > Components: Maven SCR Plugin > Reporter: J=C3=B6rg Hoh > Assignee: Carsten Ziegeler > > When using SCR annotations you can easily create services and components,= which do not have proper labels and descriptions. We should warn in these = cases. > Case 1:=20 > {code} > @Component(metatype=3Dtrue) > @Property(...) > {code} > When a metatype is being generated, a label and a description should be p= rovided as well. The warn message could be "A metatype should always have a= label and a description". > Case 2: > {code} > @Component(metatype=3Dtrue) > @Property(name=3D"foo",value=3D"bar") > {code} > When a metatype is being generated, containing properties which are not m= arked as private, a warning "Non-private properties in a metatype should al= ways have a label and a description" should be logged. > Case 3: > {code} > @Component(metatype=3Dtrue) > {code} > In case a metatype is being created without any property, a warning "A me= tatype should have properties; in case no properties are wanted, consider t= o use 'metatype=3Dfalse'" should be logged. > (inspired by FELIX-4033, thanks Robert) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira