Allows an application to directly register an instance of a
class which implements a print service.
The lookup operations for this service will be
performed by the PrintServiceLookup class using the attribute
values and classes reported by the service.
This may be less efficient than a lookup
service tuned for that service.
Therefore registering a
PrintServiceLookup
instance
instead is recommended.
The method returns true if this service is not previously
registered and is now successfully registered.
This method should not be called with StreamPrintService instances.
They will always fail to register and the method will return false.
Returns:
true
if the service is newly
registered;
false
otherwise.
Parameters:
-
service - an implementation of a print service.