Also, the org.qi4j.api.Qi4j methods that requires the Composite meta
type needs to be changed, such as
EntityDescriptor getEntityDescriptor( EntityComposite composite );
to
EntityDescriptor getEntityDescriptor( Object composite );
I also suggest returning null, instead of throwing an exception.
Niclas
On Fri, Feb 3, 2012 at 10:45 AM, Rickard Öberg <[email protected]> wrote:
> On 2/2/12 22:56 , Niclas Hedhman wrote:
>>
>> In the past it was possible to do;
>>
>> @This Composite me;
>>
>>
>> Class c = me.type():
>>
>> to get hold of the Composite Type that for instance a concern belongs to.
>>
>> In the new world right now, one have to do instanceof checks to
>> determine which Qi4j.getXyzDescriptor() to be called.
>>
>> This is important aspect for generic libraries, which can be used in
>> any composite metatype.
>>
>> I would like to add methods for each of the supertypes in the
>> Qi4j,getXyzDescriptor() hierarchies, so that there are
>>
>> getModelDescriptor(), getCompositeDescriptor(),
>> getIdentityDescriptor() and getImportedServiceDescriptor() to Qi4j
>> interface.
>>
>>
>>
>> WDYT?
>
>
> Works for me!
>
> /Rickard
>
>
>
> _______________________________________________
> qi4j-dev mailing list
> [email protected]
> http://lists.ops4j.org/mailman/listinfo/qi4j-dev
--
Niclas Hedhman, Software Developer
http://www.qi4j.org - New Energy for Java
I live here; http://tinyurl.com/3xugrbk
I work here; http://tinyurl.com/6a2pl4j
I relax here; http://tinyurl.com/2cgsug
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev