Searched refs:service (Results 1 - 25 of 183) sorted by relevance

12345678

/openjdk9/jdk/test/javax/print/attribute/
H A DGetCopiesSupported.java37 PrintService service = PrintServiceLookup.lookupDefaultPrintService();
39 if (service == null) {
44 service = pservice[0];
47 if (service != null) {
49 service.getSupportedAttributeValues(Copies.class,
H A DAttributeTest.java38 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");
H A DTestOrientationSupportForStreamPrnSrv.java41 PrintService service = null;
55 service = factories[0].getPrintService(fos);
58 System.out.println("Stream Print Service "+service);
60 if (service == null) {
64 service.isAttributeCategorySupported(OrientationRequested.class));
67 Object obj = service.getSupportedAttributeValues(OrientationRequested.class,
/openjdk9/jdk/test/javax/print/
H A DTextFlavorTest.java40 PrintService service[] =
43 if (service.length == 0) {
44 System.out.println("No print service found.");
48 for (int y = 0; y < service.length; y ++) {
49 DocFlavor flavors[] = service[y].getSupportedDocFlavors();
52 if (!service[y].isDocFlavorSupported(flavors[x])) {
54 " is not supported by service "+ service[y];
/openjdk9/jdk/test/java/awt/print/PrinterJob/CustomPrintService/
H A DSetPrintServiceTest.java36 PrintServiceStub service = new PrintServiceStub("CustomPrintService");
39 printerJob.setPrintService(service);
H A DPrintDialog.java38 "This test shows a non native print dialog having a 'test' print service\n" +
52 PrintServiceStub service = new PrintServiceStub("test");
53 PrintServiceLookup.registerService(service);
55 job.setPrintService(service);
/openjdk9/jdk/test/javax/xml/ws/xsanymixed/
H A Dcompile-wsdl.sh33 echo "compiling [test-service.wsdl] wsdl ..."
34 $COMPILEJAVA/bin/wsimport -keep -d ${TESTCLASSES} ${TESTSRC}/service.wsdl
/openjdk9/jdk/test/javax/print/PrintServiceLookup/
H A DGetPrintServices.java33 * @summary Test that print service returned without filter are of the same class
39 for (PrintService service : PrintServiceLookup.lookupPrintServices(null, null)) {
40 String serviceName = service.getName();
41 PrinterName name = service.getAttribute(PrinterName.class);
45 System.out.println("service " + service);
47 if (!service.equals(serviceByName)) {
49 + " expected: " + service.getClass().getName()
59 for (PrintService service :
61 return service;
[all...]
/openjdk9/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/processing/
H A DServiceProxy.java37 * 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...]
/openjdk9/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/policy/
H A DPolicyMapKey.java48 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...]
/openjdk9/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/policy/privateutil/
H A DServiceFinder.java45 * 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...]
/openjdk9/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot/src/org/graalvm/compiler/hotspot/
H A DHotSpotGraalJVMCIServiceLocator.java36 * necessary as a service provider instance is created each time the service is loaded.
41 <T> T getProvider(Class<T> service, HotSpotGraalJVMCIServiceLocator locator) { argument
42 if (service == JVMCICompilerFactory.class) {
43 return service.cast(new HotSpotGraalCompilerFactory(locator));
44 } else if (service == HotSpotVMEventListener.class) {
46 return service.cast(new HotSpotGraalVMEventListener(graalRuntime));
64 public <T> T getProvider(Class<T> service) { argument
65 return Shared.SINGLETON.getProvider(service, this);
/openjdk9/jdk/src/java.desktop/share/classes/sun/print/
H A DServiceNotifier.java39 * management to this class. The ServiceNotifier calls back to the service
45 private PrintService service; field in class:ServiceNotifier
54 ServiceNotifier(PrintService service) { argument
55 super(null, null, service.getName() + " notifier", 0, false);
56 this.service = service;
92 /* If a service submits a job it may call this method which may prompt
127 if (service instanceof AttributeUpdater) {
129 ((AttributeUpdater)service).getUpdatedAttributes();
131 psa = service
[all...]
/openjdk9/hotspot/test/compiler/jvmci/events/
H A DJvmciShutdownEventListener.java43 public <S> S getProvider(Class<S> service) { argument
44 if (service == HotSpotVMEventListener.class) {
45 return service.cast(this);
H A DJvmciNotifyBootstrapFinishedEventTest.java80 public <S> S getProvider(Class<S> service) { argument
81 if (service == HotSpotVMEventListener.class) {
82 return service.cast(this);
/openjdk9/jdk/test/javax/print/PrintSE/
H A DPrintSE.java34 PrintService service = PrintServiceLookup.lookupDefaultPrintService();
35 if (service == null) {
36 System.out.println("No print service found.");
43 DocPrintJob job = service.createPrintJob();
/openjdk9/langtools/test/tools/jdeps/jdkinternals/patches/jdk.unsupported/sun/misc/
H A DService.java32 public static <S> Iterator<S> providers(Class<S> service) { argument
/openjdk9/jdk/test/java/awt/print/PrinterJob/
H A DGetMediasTest.java37 for(final PrintService service: services) {
40 service.getSupportedAttributeValues(Media.class, null, null);
/openjdk9/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/policy/jaxws/
H A DBuilderHandlerEndpointScope.java44 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 DBuilderHandlerServiceScope.java44 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 DBuilderHandlerOperationScope.java44 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
/openjdk9/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/util/
H A DServiceFinder.java55 * A simple service-provider lookup mechanism. A <i>service</i> is a
56 * well-known set of interfaces and (usually abstract) classes. A <i>service
57 * provider</i> is a specific implementation of a service. The classes in a
59 * in the service itself. Service providers may be installed in an
65 * <p> In this lookup mechanism a service is represented by an interface or an
67 * recommended.) A provider of a given service contains one or more concrete
68 * classes that extend this <i>service class</i> with data and code specific to
73 * provider classes tend to be highly service-specific; no single class or
78 * <p> A service provide
158 find(@otNull Class<T> service, @Nullable ClassLoader loader, Component component) argument
162 find(@otNull Class<T> service, Component component) argument
191 find(@otNull Class<T> service, @Nullable ClassLoader loader) argument
211 find(Class<T> service) argument
215 ServiceFinder(Class<T> service, ClassLoader loader, Component component) argument
261 fail(Class service, String msg, Throwable cause) argument
269 fail(Class service, String msg) argument
274 fail(Class service, URL u, int line, String msg) argument
284 parseLine(Class service, URL u, BufferedReader r, int lc, List<String> names, Set<String> returned) argument
330 parse(Class service, URL u, Set<String> returned) argument
419 Class service; field in class:ServiceFinder.ServiceNameIterator
427 ServiceNameIterator(Class service, ClassLoader loader) argument
473 Class<T> service; field in class:ServiceFinder.LazyIterator
478 LazyIterator(Class<T> service, ClassLoader loader) argument
[all...]
/openjdk9/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/processor/model/
H A DModel.java36 * 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...]
/openjdk9/hotspot/test/serviceability/jvmti/AddModuleUsesAndProvides/MyPackage/
H A DAddModuleUsesAndProvidesTest.java51 native static int checkUses(Module baseModule, Class<?> service); argument
52 native static int checkProvides(Module baseModule, Class<?> service, Class<?> serviceImpl); argument
56 Class<?> service = TestProvider.class;
61 int status = checkUses(baseModule, service);
70 throw new RuntimeException("Check #PC1: Unexpectedly service is provided");
73 status = checkProvides(baseModule, service, serviceImpl);
80 throw new RuntimeException("Check #PC3: Unexpectedly service is not provided");
/openjdk9/hotspot/test/compiler/jvmci/common/
H A DJVMCIHelpers.java40 public <S> S getProvider(Class<S> service) { argument
41 if (service == JVMCICompilerFactory.class) {
42 return service.cast(new EmptyCompilerFactory());
44 if (service == HotSpotVMEventListener.class) {
45 return service.cast(new EmptyVMEventListener());

Completed in 223 milliseconds

12345678