javax.imageio.spi
public abstract class IIOServiceProvider extends Object implements RegisterableService
Since: 1.4
Field Summary | |
---|---|
protected String | vendorName
The vendor of this service provider, or null if the
subclass constructor did not set this field.
|
protected String | version
The version of this service provider, or null if the
subclass constructor did not set this field.
|
Constructor Summary | |
---|---|
IIOServiceProvider(String vendorName, String version)
Constructs a general IIOServiceProvider , given the
vendor name and a version string.
| |
IIOServiceProvider()
Constructs a general IIOServiceProvider without
specifying a vendor name and a version string. |
Method Summary | |
---|---|
abstract String | getDescription(Locale locale)
Returns a short description of this service provider that can be
presented to a human user.
|
String | getVendorName()
Returns the name of the vendor of this service provider. |
String | getVersion()
Returns an identifier string for the version of this service
provider. |
void | onDeregistration(ServiceRegistry registry, Class<?> category)
Informs this service provider that it has been de-registered from
a {@link ServiceRegistry}. |
void | onRegistration(ServiceRegistry registry, Class<?> category)
Informs this service provider that it has been registered in a
{@link ServiceRegistry}. |
null
if the
subclass constructor did not set this field.
See Also: getVendorName
null
if the
subclass constructor did not set this field.
See Also: getVersion
IIOServiceProvider
, given the
vendor name and a version string.
Throws: IllegalArgumentException if vendorName
or version
is null
.
IIOServiceProvider
without
specifying a vendor name and a version string. The subclass
constructor should set the {@link #vendorName} and {@link
#version} to non-null values.Parameters: locale the locale for which the description string should be localized.
onDeregistration
method will be called multiple
times. The default implementation does nothing.
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
method will be called multiple times.
The default implementation does nothing.
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.