On 2010-12-08 17.50, Niclas Hedhman wrote:
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'??
Not sure. One option is to do something about it in Qi4j.dereference(),
as we do with concern references. But I don't like that one really...
/Rickard
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev