Lines Matching defs:service

43   * Typically implementations of this service class are located
50 * The instance methods are implemented by a service provider in a subclass
61 * This check is made on a per lookup service basis to allow flexibility in
113 * @param attributes attributes that the print service must support.
131 * <P> This method is useful to help locate a service that can print
135 * but the lookup service may be able to do this more efficiently.
141 * @param attributes attributes that the print service must
158 * Locates the default print service for this environment.
161 * chosen service is not precisely defined, but a
162 * platform native service, rather than an installed service,
165 * platform native default print service, the default is the first
172 * A service specified must be discovered to be valid and currently
184 PrintService service = lus.getDefaultPrintService();
185 if (service != null) {
186 return service;
199 * This is useful if an application needs to make a new service
201 * If the lookup service is already registered, or cannot be registered,
205 * @param sp an implementation of a lookup service.
206 * @return <code>true</code> if the new lookup service is newly
230 * class which implements a print service.
231 * The lookup operations for this service will be
233 * values and classes reported by the service.
235 * service tuned for that service.
238 * The method returns true if this service is not previously
242 * @param service an implementation of a print service.
243 * @return <code>true</code> if the service is newly
247 public static boolean registerService(PrintService service) {
249 if (service instanceof StreamPrintService) {
257 if (registeredServices.contains(service)) {
261 registeredServices.add(service);
272 * Implemented by a service provider, used by the static methods
292 * Implemented by a service provider, used by the static methods
294 * @return array of all PrintServices known to this lookup service
303 * Implemented by a service provider, used by the static methods
322 * Implemented by a service provider, and called by the print lookup
323 * service
324 * @return the default PrintService for this lookup service.