Alex Shneyderman wrote:
> I see both of them used in mixins.
> What's the difference?

@Uses is instance-oriented, i.e. when you create the Composite you have 
to provide the specific instances to be injected with @Uses. @Service is 
related to traditional stateless services, i.e. they will be shared 
between all users of them.

@Uses can only be used with objects and plain Composites. Entities, 
Services and Values cannot use @Uses, as the developer does not have 
control over the instantiation of these, and for Values it would break 
the semantics.

/Rickard


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

Reply via email to