API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.imageio.spi. ServiceRegistry View Source
Author(s)
Since
Version
0.5
Serial
Hierarchy
 Object
      ServiceRegistry
Implements
Subclasses
Description
public class ServiceRegistry
  A registry for service provider instances.
See also:    RegisterableService
Constructors
public ServiceRegistry (Iterator<Class<Object>> categories)
  Constructs a ServiceRegistry instance with a set of categories taken from the categories argument.
Methods
Hide/Show inherited methods
public boolean contains (Object provider)
  Returns true if provider is currently registered.
public void deregisterAll ()
Deregisters all currently registered service providers from all categories.
public void deregisterAll (Class<Object> category)
  Deregisters all service provider object currently registered under the given category.
public void deregisterServiceProvider (Object provider)
  Removes a service provider object from all categories that contain it.
public boolean deregisterServiceProvider ( T provider, Class< T> category)
  Removes a service provider object from the given category.
public void finalize () throws Throwable
  Finalizes this object prior to garbage collection.
public Iterator<Class<Object>> getCategories ()
  Returns an Iterator of Class objects indicating the current set of categories.
public T getServiceProviderByClass (Class< T> providerClass)
  Returns the currently registered service provider object that is of the given class type.
public Iterator< T> getServiceProviders (Class< T> category, boolean useOrdering)
  Returns an Iterator containing all registered service providers in the given category.
public Iterator< T> getServiceProviders (Class< T> category, Filter filter, boolean useOrdering)
  Returns an Iterator containing service provider objects within a given category that satisfy a criterion imposed by the supplied ServiceRegistry.Filter object's filter method.
publicstatic Iterator< T> lookupProviders (Class< T> providerClass)
  Locates and incrementally instantiates the available providers of a given service using the context class loader.
publicstatic Iterator< T> lookupProviders (Class< T> providerClass, ClassLoader loader)
  Searches for implementations of a particular service class using the given class loader.
public void registerServiceProvider (Object provider)
  Adds a service provider object to the registry.
public boolean registerServiceProvider ( T provider, Class< T> category)
  Adds a service provider object to the registry.
public void registerServiceProviders (Iterator<Object> providers)
  Adds a set of service provider objects, taken from an Iterator to the registry.
public boolean setOrdering (Class< T> category, T firstProvider, T secondProvider)
  Sets a pairwise ordering between two service provider objects within a given category.
public boolean unsetOrdering (Class< T> category, T firstProvider, T secondProvider)
  Sets a pairwise ordering between two service provider objects within a given category.
Fields
Hide/Show inherited fields
Nested Classes
  ServiceRegistry.Filter
A simple filter interface used by ServiceRegistry.getServiceProviders to select providers matching an arbitrary criterion.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar