Edward Yakop wrote:
> On Sat, Oct 25, 2008 at 13:33, Richard Wallace
> <[EMAIL PROTECTED]> wrote:
>> But I can't figure out any way to import a service into Qi4j such that it
>> will be injected into native services and mixins.  Is there something I'm
>> missing?
> 
> moduleAssembly.addServices( MyServiceComposite.class ).providedBy(
> myServiceInstanceFactory );
> 
> and the service instance factory interface:
> <code>
> public interface ServiceInstanceFactory
> {
>      Object newInstance( ServiceDescriptor serviceDescriptor )
>         throws ServiceInstanceProviderException;
> 
>     void releaseInstance( Object instance )
>         throws ServiceInstanceProviderException;
> }
> </code>

It would be interesting to do this with, for example, Spring. To see how 
well it would work, and if the SPI for this is sufficient. Any takes?

/Rickard


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

Reply via email to