Ok, followup to previous response. After a little tinkering I got
generic lookups like this to work as well:
@Service
Foo<T> fooService;
As long as the actual mixin/object that needs the injection has resolved
T (e.x. to String), the Qi4j runtime can figure this out and inject
String instead of T.
Example:
public abstract class AbstractFooMixin<T>
{
@Service Foo<T> fooService;
}
public class FooMixin
extends AbstractFooMixin<String>
{}
If FooMixin is used, then T can be resolved to String, and so injection
of the Foo<String> service works properly.
/Rickard
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev