Niclas Hedhman wrote:
On Fri, Aug 21, 2009 at 4:53 PM, Rickard Öberg<[email protected]> wrote:
Niclas Hedhman wrote:
public interface ServiceFinder
{
   <T> ServiceReference<T> findService( Type serviceType );
   <T> Iterable<ServiceReference<T>> findServices( Type serviceType );
}

are using Type instead of Class<T> ??

With Type, it might as well be;

public interface ServiceFinder
{
   ServiceReference<Object> findService( Type serviceType );
   Iterable<ServiceReference<Object>> findServices( Type serviceType );
}

which indeed is ugly...
You have already asked exactly the same question once before, so check my
reply on that :-)

Ok, found it; You answered that you can't remember what case it is/was...

I'll see if I can find out...

It's basically the case when you have a generic type instead of just a class.

It would be entirely possible to duplicate the methods just to have the specialized Class<T> methods.

/Rickard


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

Reply via email to