On Wed, Dec 8, 2010 at 5:42 PM, Rickard Öberg <[email protected]> wrote:
> On 2010-12-08 17.34, Niclas Hedhman wrote:
>>
>> And in the mixin activate(), I check if there is a BundleContext as
>> metaInfo(), and if so, registers "myself" to the OSGi service
>> registry, with an optional set of properties.
>
> Why can't you just use the servicefinder to lookup yourself? The type should
> be available in the ServiceDescriptor. Or you can do a lookup on
> Object.class and filter on id using ServiceQualifiers.

Excellent. Works as advertised!


Do we need to document the use of @This references, and to what extent
these can be handed out 'elsewhere'??

Cheers
-- 
Niclas Hedhman, Software Developer
http://www.qi4j.org - New Energy for Java

I  live here; http://tinyurl.com/2qq9er
I  work here; http://tinyurl.com/2ymelc
I relax here; http://tinyurl.com/2cgsug

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to