author | duke |
Wed, 05 Jul 2017 16:53:22 +0200 | |
changeset 2775 | c33e7d38c921 |
parent 2678 | 57cf2a1c1a05 |
permissions | -rw-r--r-- |
8 | 1 |
/* |
2678
57cf2a1c1a05
6831313: update jaxws in OpenJDK7 to 2.1 plus bug fixes from OpenJDK 6
tbell
parents:
8
diff
changeset
|
2 |
* Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved. |
8 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
7 |
* published by the Free Software Foundation. Sun designates this |
|
8 |
* particular file as subject to the "Classpath" exception as provided |
|
9 |
* by Sun in the LICENSE file that accompanied this code. |
|
10 |
* |
|
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
* accompanied this code). |
|
16 |
* |
|
17 |
* You should have received a copy of the GNU General Public License version |
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
* |
|
21 |
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
|
22 |
* CA 95054 USA or visit www.sun.com if you need additional information or |
|
23 |
* have any questions. |
|
24 |
*/ |
|
25 |
||
26 |
package javax.xml.ws; |
|
27 |
||
28 |
import java.lang.annotation.Documented; |
|
29 |
import java.lang.annotation.Target; |
|
30 |
import java.lang.annotation.ElementType; |
|
31 |
import java.lang.annotation.Retention; |
|
32 |
import java.lang.annotation.RetentionPolicy; |
|
33 |
||
34 |
/** |
|
35 |
* The <code>WebServiceRef</code> annotation is used to |
|
36 |
* define a reference to a web service and |
|
37 |
* (optionally) an injection target for it. |
|
38 |
* |
|
39 |
* Web service references are resources in the Java EE 5 sense. |
|
40 |
* |
|
41 |
* @see javax.annotation.Resource |
|
42 |
* |
|
43 |
* @since JAX-WS 2.0 |
|
44 |
* |
|
45 |
**/ |
|
46 |
||
47 |
@Target({ElementType.TYPE, ElementType.METHOD, ElementType.FIELD}) |
|
48 |
@Retention(RetentionPolicy.RUNTIME) |
|
49 |
@Documented |
|
50 |
public @interface WebServiceRef { |
|
51 |
/** |
|
52 |
* The JNDI name of the resource. For field annotations, |
|
53 |
* the default is the field name. For method annotations, |
|
54 |
* the default is the JavaBeans property name corresponding |
|
55 |
* to the method. For class annotations, there is no default |
|
2678
57cf2a1c1a05
6831313: update jaxws in OpenJDK7 to 2.1 plus bug fixes from OpenJDK 6
tbell
parents:
8
diff
changeset
|
56 |
* and this MUST be specified. |
8 | 57 |
*/ |
58 |
String name() default ""; |
|
59 |
||
60 |
/** |
|
61 |
* The Java type of the resource. For field annotations, |
|
62 |
* the default is the type of the field. For method annotations, |
|
63 |
* the default is the type of the JavaBeans property. |
|
2678
57cf2a1c1a05
6831313: update jaxws in OpenJDK7 to 2.1 plus bug fixes from OpenJDK 6
tbell
parents:
8
diff
changeset
|
64 |
* For class annotations, there is no default and this MUST be |
8 | 65 |
* specified. |
66 |
*/ |
|
67 |
Class type() default Object.class ; |
|
68 |
||
69 |
/** |
|
70 |
* A product specific name that this resource should be mapped to. |
|
71 |
* The name of this resource, as defined by the <code>name</code> |
|
72 |
* element or defaulted, is a name that is local to the application |
|
73 |
* component using the resource. (It's a name in the JNDI |
|
74 |
* <code>java:comp/env</code> namespace.) Many application servers |
|
75 |
* provide a way to map these local names to names of resources |
|
76 |
* known to the application server. This mapped name is often a |
|
77 |
* <i>global</i> JNDI name, but may be a name of any form. <p> |
|
78 |
* |
|
79 |
* Application servers are not required to support any particular |
|
80 |
* form or type of mapped name, nor the ability to use mapped names. |
|
81 |
* The mapped name is product-dependent and often installation-dependent. |
|
82 |
* No use of a mapped name is portable. |
|
83 |
*/ |
|
84 |
String mappedName() default ""; |
|
85 |
||
86 |
/** |
|
87 |
* The service class, always a type extending |
|
2678
57cf2a1c1a05
6831313: update jaxws in OpenJDK7 to 2.1 plus bug fixes from OpenJDK 6
tbell
parents:
8
diff
changeset
|
88 |
* <code>javax.xml.ws.Service</code>. This element MUST be specified |
8 | 89 |
* whenever the type of the reference is a service endpoint interface. |
90 |
*/ |
|
91 |
Class value() default Object.class ; |
|
92 |
||
93 |
/** |
|
94 |
* A URL pointing to the WSDL document for the web service. |
|
95 |
* If not specified, the WSDL location specified by annotations |
|
96 |
* on the resource type is used instead. |
|
97 |
*/ |
|
98 |
String wsdlLocation() default ""; |
|
99 |
} |