felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (FELIX-4036) Check for label/description of component and properties when metatype information is generated
Date Wed, 11 May 2016 07:00:20 GMT

     [ https://issues.apache.org/jira/browse/FELIX-4036?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Carsten Ziegeler resolved FELIX-4036.
-------------------------------------
    Resolution: Won't Fix

> Check for label/description of component and properties when metatype information is
generated
> ----------------------------------------------------------------------------------------------
>
>                 Key: FELIX-4036
>                 URL: https://issues.apache.org/jira/browse/FELIX-4036
>             Project: Felix
>          Issue Type: Improvement
>          Components: SCR Tooling
>            Reporter: Jörg Hoh
>
> 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: 
> {code}
> @Component(metatype=true)
> @Property(...)
> {code}
> When a metatype is being generated, a label and a description should be provided as well.
The warn message could be "A metatype should always have a label and a description".
> Case 2:
> {code}
> @Component(metatype=true)
> @Property(name="foo",value="bar")
> {code}
> When a metatype is being generated, containing properties which are not marked as private,
a warning "Non-private properties in a metatype should always have a label and a description"
should be logged.
> Case 3:
> {code}
> @Component(metatype=true)
> {code}
> In case a metatype is being created without any property, a warning "A metatype should
have properties; in case no properties are wanted, consider to use 'metatype=false'" should
be logged.
> (inspired by FELIX-4033, thanks Robert)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message