Carl F. Hall wrote:
> Something else we just noticed with the docs & annotations, if metatype is 
> not specified, it defaults to false (docs are correct) but the description in 
> the docs is misleading.  It appears to have been copied from the JavaDoc bit. 
>  Also, what caused the default to be changed from true to false?
> 
> Currently:
> "Whether Metatype Service data is generated or not. If this parameter is not 
> set or set to true Metatype Service data is generated in the metatype.xml 
> file for this component. Otherwise no Metatype Service data is generated for 
> this component."
> 
> Should be something like:
> "Whether Metatype Service data is generated or not. If this parameter set to 
> true, Metatype Service data is generated in the metatype.xml file for this 
> component. Otherwise no Metatype Service data is generated for this 
> component."
Thanks Carl for spotting this! I'll correct it in the docs.

Yes, the default for the metatype generation when using tags is true
while it is false for annotations. There is a section at the end of the
page listening differences between the two.

Now the reason for changing the default from true to false is that it
turned out services without metatype are more often and developers
forgot to set the flag to false. In these cases metatype information is
generated although it's not used - and these services are then also
displayed in the configuration manager plugin of the web console which
bloats the list of services.
So false seems to be the better default; for compatibility we can't
change the default for the tags, but for something new like the
annotations we could do this.

Regards
Carsten

> 
> 
> ----- Original Message -----
> From: "Carsten Ziegeler" <[email protected]>
> To: [email protected]
> Sent: Thursday, August 13, 2009 4:51:12 AM GMT -05:00 US/Canada Eastern
> Subject: Re: QDox vs. Annotations
> 
> Carl F. Hall wrote:
>> Ahh, that does explain it all.  Would it be worth mentioning version >= 
>> 1.2.0 in the scr docs [1] when discussing the annotations?
>>
> Yes, good point - I just added a comment.
> 
> Thanks
> Carsten
> 
>> [1] http://felix.apache.org/site/apache-felix-maven-scr-plugin.html
>>
>>
>> ----- Original Message -----
>> From: "Carsten Ziegeler" <[email protected]>
>> To: [email protected]
>> Sent: Wednesday, August 12, 2009 9:18:27 AM GMT -05:00 US/Canada Eastern
>> Subject: Re: QDox vs. Annotations
>>
>> Carl F. Hall wrote:
>>> Version 1.2.0 works much better.  The annotations are being processed 
>>> correctly.  Thanks!
>>>
>> Yes, that's because we added annotation support with 1.2.0 (1.0.8 does
>> not have it) :)
>>
>> Regards
>> Carsten
>>
>>
> 
> 


-- 
Carsten Ziegeler
[email protected]

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to