On Thu, Mar 5, 2009 at 8:07 PM, Alex Shneyderman
<[email protected]> wrote:
> I do not quite see why one would create an extension rather than the
> library? I have  feeling that the reason is only logical, where
> extensions seem to provide functionality that is being plugged in to
> Qi4j, while libraries are adapters around some existing libraries out
> there. Or something else completely?

Library;
 - User = any client code including extensions and other libraries.

Extension;
 - User = Qi4j Runtime only.

I.e. An application should ONLY reference extensions from the
bootstrap code, and NEVER in the rest of the application. Whereas
Libraries are 'new' functionality which needs to expose new APIs. You
can consider extensions being implementations of the internal Qi4j API
which we call the Qi4j SPI (Service Provider Interface). Ideally,
extensions should not reference each other either, although that is
currently violated and on my list to fix.


Cheers
Niclas
-- 
http://www.qi4j.org - New Energy for Java

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

Reply via email to