/openjdk7/jdk/test/javax/print/attribute/ |
H A D | GetCopiesSupported.java | 37 PrintService service = PrintServiceLookup.lookupDefaultPrintService(); 39 if (service == null) { 44 service = pservice[0]; 47 if (service != null) { 49 service.getSupportedAttributeValues(Copies.class,
|
H A D | AttributeTest.java | 38 PrintService service[] = PrintServiceLookup.lookupPrintServices(null, null); 40 if (service.length == 0) { 44 for (int x = 0; x < service.length; x ++) { 45 DocFlavor flavors[] = service[x].getSupportedDocFlavors(); 48 Object attrVal = service[x].getSupportedAttributeValues(Media.class, flavors[y], null); 54 if (!service[x].isAttributeValueSupported(attr[z], flavors[y], null)) { 57 ", where the flavor is: " + flavors[y] + " and the print service is: " + 58 service[x] + "\n");
|
/openjdk7/jdk/test/javax/print/PrintServiceLookup/ |
H A D | GetPrintServices.java | 33 * @summary Test that print service returned without filter are of the same class as with name filter 38 for (PrintService service : PrintServiceLookup.lookupPrintServices(null, null)) { 39 String serviceName = service.getName(); 41 if (!service.equals(serviceByName)) { 43 + " expected: " + service.getClass().getName() 53 for (PrintService service : PrintServiceLookup.lookupPrintServices(null, attributes)) { 54 return service;
|
/openjdk7/jdk/src/share/classes/java/util/ |
H A D | ServiceLoader.java | 41 * A simple service-provider loading facility. 43 * <p> A <i>service</i> is a well-known set of interfaces and (usually 44 * abstract) classes. A <i>service provider</i> is a specific implementation 45 * of a service. The classes in a provider typically implement the interfaces 46 * and subclass the classes defined in the service itself. Service providers 52 * <p> For the purpose of loading, a service is represented by a single type, 54 * used, but this is not recommended.) A provider of a given service contains 55 * one or more concrete classes that extend this <i>service type</i> with data 60 * The details of provider classes tend to be highly service-specific; no 66 * <p><a name="format"> A service provide 188 private Class<S> service; field in class:ServiceLoader 221 fail(Class service, String msg, Throwable cause) argument 228 fail(Class service, String msg) argument 234 fail(Class service, URL u, int line, String msg) argument 243 parseLine(Class service, URL u, BufferedReader r, int lc, List<String> names) argument 289 parse(Class service, URL u) argument 319 Class<S> service; field in class:ServiceLoader.LazyIterator 325 LazyIterator(Class<S> service, ClassLoader loader) argument 470 load(Class<S> service, ClassLoader loader) argument 497 load(Class<S> service) argument 526 loadInstalled(Class<S> service) argument [all...] |
/openjdk7/jdk/src/share/classes/sun/misc/ |
H A D | Service.java | 43 * A simple service-provider lookup mechanism. A <i>service</i> is a 44 * well-known set of interfaces and (usually abstract) classes. A <i>service 45 * provider</i> is a specific implementation of a service. The classes in a 47 * in the service itself. Service providers may be installed in an 53 * <p> In this lookup mechanism a service is represented by an interface or an 55 * recommended.) A provider of a given service contains one or more concrete 56 * classes that extend this <i>service class</i> with data and code specific to 61 * provider classes tend to be highly service-specific; no single class or 66 * <p> A service provide 134 fail(Class service, String msg, Throwable cause) argument 143 fail(Class service, String msg) argument 149 fail(Class service, URL u, int line, String msg) argument 160 parseLine(Class service, URL u, BufferedReader r, int lc, List names, Set returned) argument 214 parse(Class service, URL u, Set returned) argument 244 Class service; field in class:Service.LazyIterator 251 LazyIterator(Class service, ClassLoader loader) argument 353 providers(Class service, ClassLoader loader) argument 385 providers(Class service) argument 422 installedProviders(Class service) argument [all...] |
/openjdk7/langtools/src/share/classes/com/sun/tools/javac/processing/ |
H A D | ServiceProxy.java | 37 * Utility class to determine if a service can be found on the 58 private static void fail(Class<?> service, String msg) argument 60 throw new ServiceConfigurationError(service.getName() + ": " + msg); 63 private static void fail(Class<?> service, URL u, int line, String msg) argument 65 fail(service, u + ":" + line + ": " + msg); 71 * @param service 72 * The service class for which providers are being sought; 78 * @return true if the name of a service is found 84 private static boolean parse(Class<?> service, URL u) throws ServiceConfigurationError { argument 99 fail(service, 134 hasService(Class<?> service, URL[] urls) argument [all...] |
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/ws/policy/ |
H A D | PolicyMapKey.java | 48 private final QName service; field in class:PolicyMapKey 55 PolicyMapKey(final QName service, final QName port, final QName operation, final PolicyMapKeyHandler handler) { argument 56 this(service, port, operation, null, handler); 59 PolicyMapKey(final QName service, final QName port, final QName operation, final QName faultMessage, final PolicyMapKeyHandler handler) { argument 64 this.service = service; 72 this.service = that.service; 88 return service; 128 result.append(this.service) [all...] |
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/ws/util/ |
H A D | ServiceFinder.java | 47 * A simple service-provider lookup mechanism. A <i>service</i> is a 48 * well-known set of interfaces and (usually abstract) classes. A <i>service 49 * provider</i> is a specific implementation of a service. The classes in a 51 * in the service itself. Service providers may be installed in an 57 * <p> In this lookup mechanism a service is represented by an interface or an 59 * recommended.) A provider of a given service contains one or more concrete 60 * classes that extend this <i>service class</i> with data and code specific to 65 * provider classes tend to be highly service-specific; no single class or 70 * <p> A service provide 162 find(@otNull Class<T> service, @Nullable ClassLoader loader) argument 182 find(Class<T> service) argument 186 ServiceFinder(Class<T> service, ClassLoader loader) argument 220 fail(Class service, String msg, Throwable cause) argument 228 fail(Class service, String msg) argument 233 fail(Class service, URL u, int line, String msg) argument 243 parseLine(Class service, URL u, BufferedReader r, int lc, List<String> names, Set<String> returned) argument 289 parse(Class service, URL u, Set<String> returned) argument 317 Class<T> service; field in class:ServiceFinder.LazyIterator 325 LazyIterator(Class<T> service, ClassLoader loader) argument [all...] |
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/ws/policy/privateutil/ |
H A D | ServiceFinder.java | 45 * A simple service-provider lookup mechanism. A <i>service</i> is a 46 * well-known set of interfaces and (usually abstract) classes. A <i>service 47 * provider</i> is a specific implementation of a service. The classes in a 49 * in the service itself. Service providers may be installed in an 55 * <p> In this lookup mechanism a service is represented by an interface or an 57 * recommended.) A provider of a given service contains one or more concrete 58 * classes that extend this <i>service class</i> with data and code specific to 63 * provider classes tend to be highly service-specific; no single class or 68 * <p> A service provide 161 find(final Class<T> service, final ClassLoader loader) argument 184 find(final Class<T> service) argument 188 ServiceFinder(Class<T> service, ClassLoader loader) argument 223 fail(final Class service, final String msg, final Throwable cause) argument 239 fail(final Class service, final URL u, final int line, final String msg, final Throwable cause) argument 249 parseLine(final Class service, final URL u, final BufferedReader r, final int lc, final List<String> names, final Set<String> returned) argument 295 parse(Class service, URL u, Set<String> returned) argument 323 Class<T> service; field in class:ServiceFinder.LazyIterator 330 LazyIterator(Class<T> service, ClassLoader loader) argument [all...] |
/openjdk7/jdk/src/share/classes/sun/print/ |
H A D | ServiceNotifier.java | 39 * management to this class. The ServiceNotifier calls back to the service 45 private PrintService service; field in class:ServiceNotifier 50 ServiceNotifier(PrintService service) { argument 51 super(service.getName() + " notifier"); 52 this.service = service; 88 /* If a service submits a job it may call this method which may prompt 123 if (service instanceof AttributeUpdater) { 125 ((AttributeUpdater)service).getUpdatedAttributes(); 127 psa = service [all...] |
/openjdk7/jdk/test/javax/print/PrintSE/ |
H A D | PrintSE.java | 34 PrintService service = PrintServiceLookup.lookupDefaultPrintService(); 35 if (service == null) { 36 System.out.println("No print service found."); 43 DocPrintJob job = service.createPrintJob();
|
/openjdk7/jdk/test/java/awt/print/PrinterJob/ |
H A D | GetMediasTest.java | 37 for(final PrintService service: services) { 40 service.getSupportedAttributeValues(Media.class, null, null);
|
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/ws/policy/jaxws/ |
H A D | BuilderHandlerEndpointScope.java | 44 private final QName service; field in class:BuilderHandlerEndpointScope 48 BuilderHandlerEndpointScope(Collection<String> policyURIs, Map<String,PolicySourceModel> policyStore, Object policySubject, QName service, QName port) { argument 51 this.service = service; 56 final PolicyMapKey mapKey = PolicyMap.createWsdlEndpointScopeKey(service, port); 64 return (new StringBuffer(service.toString())).append(":").append(port.toString()).toString();
|
H A D | BuilderHandlerServiceScope.java | 44 private final QName service; field in class:BuilderHandlerServiceScope 50 Collection<String> policyURIs, Map<String,PolicySourceModel> policyStore, Object policySubject, QName service) { 53 this.service = service; 57 final PolicyMapKey mapKey = PolicyMap.createWsdlServiceScopeKey(service); 65 return service.toString(); 49 BuilderHandlerServiceScope( Collection<String> policyURIs, Map<String,PolicySourceModel> policyStore, Object policySubject, QName service) argument
|
H A D | BuilderHandlerOperationScope.java | 44 private final QName service; field in class:BuilderHandlerOperationScope 53 , QName service, QName port, QName operation) { 56 this.service = service; 62 final PolicyMapKey mapKey = PolicyMap.createWsdlOperationScopeKey(service, port, operation); 49 BuilderHandlerOperationScope( Collection<String> policyURIs , Map<String,PolicySourceModel> policyStore , Object policySubject , QName service, QName port, QName operation) argument
|
H A D | BuilderHandlerMessageScope.java | 44 private final QName service; field in class:BuilderHandlerMessageScope 63 , QName service, QName port, QName operation, QName message) { 66 this.service = service; 95 result = result && ((this.service == null) ? ((that.service == null) ? true : false) :this.service.equals(that.service)); 110 hashCode = 31 * hashCode + (service == null ? 0 : service 58 BuilderHandlerMessageScope( Collection<String> policyURIs , Map<String,PolicySourceModel> policyStore , Object policySubject , Scope scope , QName service, QName port, QName operation, QName message) argument [all...] |
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/tools/internal/ws/processor/model/ |
H A D | Model.java | 36 * this Model to generate Java artifacts such as the service interface. 67 public void addService(Service service) { argument 68 if (servicesByName.containsKey(service.getName())) { 71 services.add(service); 72 servicesByName.put(service.getName(), service); 95 for (Service service : services) { 96 if (service.getName() != null && 97 servicesByName.containsKey(service.getName())) { 101 servicesByName.put(service [all...] |
/openjdk7/jdk/src/share/classes/java/beans/beancontext/ |
H A D | BeanContextServiceRevokedEvent.java | 36 * identify the service being revoked. 45 * from which this service is being revoked 46 * @param sc the service that is being revoked 59 * this service is being revoked 66 * Gets the service class that is the subject of this notification 68 * service that is being revoked 74 * the service being revoked is of a particular class. 75 * @param service the service of interest (should be non-null) 76 * @return <code>true</code> if the service bein 79 isServiceClass(Class service) argument [all...] |
H A D | BeanContextServiceProvider.java | 37 * provide an instance of a "service", based upon a reference to a Java 38 * Class object that represents that service. 41 * If such a service has been registered with the context, or one of its 43 * to satisfy a service request, then the BeanContextServiceProvider associated with 44 * the service is asked to provide an instance of that service. 57 * service from this <code>BeanContextServiceProvider</code>. 61 * <code>BeanContextServiceProvider</code> to distinguish service 64 * @param requestor The object requesting the service 66 * @param serviceClass The service requeste 88 releaseService(BeanContextServices bcs, Object requestor, Object service) argument [all...] |
/openjdk7/jdk/src/share/classes/sun/security/krb5/ |
H A D | ServiceName.java | 51 public ServiceName (String service, String instance, String realm) argument 54 super(service, instance, realm, PrincipalName.KRB_NT_SRV_INST);
|
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/ws/api/client/ |
H A D | ServiceInterceptorFactory.java | 60 public abstract ServiceInterceptor create(@NotNull WSService service); argument 65 public static @NotNull ServiceInterceptor load(@NotNull WSService service, @Nullable ClassLoader cl) { argument 68 // first service look-up 70 l.add(f.create(service)); 74 l.add(f.create(service));
|
/openjdk7/jdk/test/java/awt/print/PageFormat/ |
H A D | PageFormatFromAttributes.java | 39 PrintService service = job.getPrintService(); 40 if (service == null) { 61 PrintService service = job.getPrintService(); 62 if (!service.isAttributeValueSupported(media, null, aset) || 63 !service.isAttributeValueSupported(orient, null, aset)) {
|
/openjdk7/jdk/test/javax/print/ |
H A D | StreamPrintingOrientation.java | 56 PrintService service = null; 67 service = factories[0].getPrintService(fos); 69 if (service != null) { 70 System.out.println("Stream Print Service "+service); 71 pj.setPrintService(service); 92 if (service != null) {
|
/openjdk7/jdk/test/javax/print/attribute/autosense/ |
H A D | PrintAutoSenseData.java | 40 private PrintService[] service = PrintServiceLookup.lookupPrintServices(flavor, null); field in class:PrintAutoSenseData 45 if (service.length == 0) 47 System.out.println("No print service available..."); 51 System.out.println("selected PrintService: " + this.service[0]); 52 if (service[0].isDocFlavorSupported(flavor)) { 59 DocPrintJob job = service[0].createPrintJob(); 67 DocPrintJob job = service[0].createPrintJob();
|
/openjdk7/jaxp/src/org/xml/sax/helpers/ |
H A D | XMLReaderFactory.java | 148 String service = "META-INF/services/" + property; 154 in = ss.getResourceAsStream(cl, service); 159 in = ss.getResourceAsStream(cl, service); 163 in = ss.getResourceAsStream(cl, service);
|