Niclas Hedhman wrote: > On Wed, Mar 4, 2009 at 12:10 AM, Rickard Öberg <[email protected]> wrote: > >> @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. > > I don't think that there is a conflict between @Uses and Values, and > if it is not allowed now, it should be.
Can you explain why? Values are immutable, and objects that are @Used are not. We also will get a lot of trouble with serialization of ValueComposites if you allow them to reference objects with @Uses. /Rickard _______________________________________________ qi4j-dev mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/qi4j-dev

