sun.misc

Class Service

public class Service extends Object

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

Method Detail

providers

public static <P> Iterator<P> providers(Class<P> c, ClassLoader cl)
Returns an {@link 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.