API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util. ServiceLoader View Source
Author(s)
Mark Reinhold
Since
1.6
Version
1.10, 06/04/10
Serial
Hierarchy
 Object
      ServiceLoader
Implements
 Iterable
Subclasses
Description
publicfinal class ServiceLoader
  A simple service-provider loading facility.
See also:   
Constructors
private ServiceLoader (Class< S> svc, ClassLoader cl)
Methods
Hide/Show inherited methods
public Iterator< S> iterator () [Specified in Iterable]
  Lazily loads the available providers of this loader's service.
publicstatic ServiceLoader< S> load (Class< S> service)
  Creates a new service loader for the given service type, using the current thread's context class loader.
publicstatic ServiceLoader< S> load (Class< S> service, ClassLoader loader)
  Creates a new service loader for the given service type and class loader.
publicstatic ServiceLoader< S> loadInstalled (Class< S> service)
  Creates a new service loader for the given service type, using the extension class loader.
public void reload ()
  Clear this loader's provider cache so that all providers will be reloaded.
public String toString ()
  Returns a string describing this service.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar