On Friday 18 April 2008 18:31, Rickard Öberg wrote:

public class ServiceConsumer
{
     private ServiceSelector<TestService> selector;

     public ServiceConsumer( @Uses String id, @Service
  Iterable<ServiceReference<TestService>> serviceRefs)
     {
         selector = new ServiceSelector<TestService>(serviceRefs, id);
     }

     public TestService getService()
     {
         return selector.get();
     }
}

Are we talking about a generic ServiceSelector class, or a pattern of how to 
do things? I guess I don't get it...


Cheers
-- 
Niclas Hedhman, Software Developer

I  live here; http://tinyurl.com/2qq9er
I  work here; http://tinyurl.com/2ymelc
I relax here; http://tinyurl.com/2cgsug

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

Reply via email to