sun.misc
Class Service

java.lang.Object
  extended by sun.misc.Service

public class Service
extends Object


Constructor Summary
Service()
           
 
Method Summary
static
<P> Iterator<P>
providers(Class<P> c, ClassLoader cl)
          Returns an Iterator over the service providers which provide a service of the given class, and are available from the specified classloader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Service

public Service()
Method Detail

providers

public static <P> Iterator<P> providers(Class<P> c,
                                        ClassLoader cl)
Returns an Iterator over the service providers which provide a service of the given class, and are available from the specified classloader.

Parameters:
c - the service provider interface which must be implemented by any loaded service providers.
cl - the class loader that will be used to load the service providers, or null for the system class loader.
Returns:
an iterator over the service providers.