sun.misc
Constructor and Description |
---|
Service() |
Modifier and Type | Method and Description |
---|---|
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. |
public Service()
public static <P> Iterator<P> providers(Class<P> c, ClassLoader cl)
Iterator
over the service providers which
provide a service of the given class, and are available from
the specified classloader.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.