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>
Regards,
Edward Yakop
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev