On Wed, Dec 8, 2010 at 5:25 PM, Rickard Öberg <[email protected]> wrote:
> The reference from the finder allows the underlying composite to be
> passivated, which the myAsService does not. It would probably be better to
> do @Service MyService myself to get an exportable reference.
Ok. The problem is that this is for generic code. To be precise,
public interface OSGiEnabledService extends Activatable, ServiceComposite
{
}
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.
So, I can't use @Service injection...
Maybe I can get hold of the ServiceFinder in the Module and do lookup
by service identity? Nooo, lookup by identity is not possible at the
moment. Should we add it?
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