> On 03 Mar 2015, at 16:36, Raymond Auge <[email protected]> wrote:
> 
>> 
>> IIRC, the MetaType spec already allows for optional attributes to be
>> defined
>> on ADs, Attributes, OCDs and Objects. I believe that this would already
>> cover
>> most of these requirements, not?
>> 
> 
> Sure! However, the need to read the metatype again is painful when metatype
> is already reading it. Furthermore, this doesn't work for MetatypeProviders.

Not sure we are one the same line here: the current Felix MetaType 
implementation
already provides access to all unknown attributes it reads from a MetaType XML
Resource, see [1] and [2]. This also can be used to create them programmatically
for use in your MetaTypeProvider. As I see it, it should solve your 1st and 3rd
requirement...

1. 
http://svn.apache.org/viewvc/felix/trunk/metatype/src/main/java/org/apache/felix/metatype/OptionalAttributes.java?revision=1399637
2. 
http://svn.apache.org/viewvc/felix/trunk/metatype/src/main/java/org/apache/felix/metatype/AD.java?revision=1653581

--
Met vriendelijke groeten | Kind regards

Jan Willem Janssen | Software Architect
+31 631 765 814

My world is revolving around INAETICS and Amdatu

Luminis Technologies B.V.
Churchillplein 1
7314 BZ   Apeldoorn
+31 88 586 46 00

http://www.luminis-technologies.com
http://www.luminis.eu

KvK (CoC) 09 16 28 93
BTW (VAT) NL8169.78.566.B.01

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to