javax.imageio.spi

Interface RegisterableService

public interface RegisterableService

An interface which service providers may optionally implement in order to get notified when they are added or removed from a {@link ServiceRegistry}.

Since: 1.4

Method Summary
voidonDeregistration(ServiceRegistry registry, Class<?> category)
Informs this service provider that it has been de-registered from a {@link ServiceRegistry}.
voidonRegistration(ServiceRegistry registry, Class<?> category)
Informs this service provider that it has been registered in a {@link ServiceRegistry}.

Method Detail

onDeregistration

public void onDeregistration(ServiceRegistry registry, Class<?> category)
Informs this service provider that it has been de-registered from a {@link ServiceRegistry}. If this provider had been registered as an implementor for several service categories, its onDeregistration method will be called multiple times.

Parameters: registry the registry from which this service provider has been removed. category the service category for which this provider has been registered as an implementor.

onRegistration

public void onRegistration(ServiceRegistry registry, Class<?> category)
Informs this service provider that it has been registered in a {@link ServiceRegistry}. If this provider gets registered as an implementor for several service categories, its onRegistration method will be called multiple times.

Parameters: registry the registry to which this service provider has been added. category the service category for which this provider has been registered as an implementor.