author | mkos |
Sun, 30 Dec 2012 00:00:00 +0100 | |
changeset 22678 | ac1ea46be942 |
parent 12009 | 4abb694f273a |
child 25840 | c2002453eec3 |
permissions | -rw-r--r-- |
12009 | 1 |
/* |
22678
ac1ea46be942
8029237: Update copyright year to match last edit in jaxws repository for 2012
mkos
parents:
12009
diff
changeset
|
2 |
* Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved. |
12009 | 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. Oracle designates this |
|
8 |
* particular file as subject to the "Classpath" exception as provided |
|
9 |
* by Oracle 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
|
22 |
* or visit www.oracle.com if you need additional information or have any |
|
23 |
* questions. |
|
24 |
*/ |
|
25 |
||
26 |
package javax.xml.ws.spi; |
|
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 |
import javax.xml.ws.WebServiceFeature; |
|
34 |
import javax.xml.ws.WebServiceRef; |
|
35 |
import javax.xml.ws.WebServiceRefs; |
|
36 |
import javax.xml.ws.RespectBinding; |
|
37 |
import javax.xml.ws.soap.Addressing; |
|
38 |
import javax.xml.ws.soap.MTOM; |
|
39 |
||
40 |
/** |
|
41 |
* Annotation used to identify other annotations |
|
42 |
* as a <code>WebServiceFeature</code>. |
|
43 |
* <p> |
|
44 |
* Each <code>WebServiceFeature</code> annotation annotated with |
|
45 |
* this annotation MUST contain an |
|
46 |
* <code>enabled</code> property of type |
|
47 |
* <code>boolean</code> with a default value of <code>true</code>. |
|
48 |
* <p> |
|
49 |
* JAX-WS defines the following |
|
50 |
* <code>WebServiceFeature</code> annotations (<code>Addressing</code>, |
|
51 |
* <code>MTOM</code>, <code>RespectBinding</code>), however, an implementation |
|
52 |
* may define vendors specific annotations for other features. |
|
53 |
* <p> |
|
54 |
* Annotations annotated with <code>WebServiceFeatureAnnotation</code> MUST |
|
55 |
* have the same @Target of {@link WebServiceRef} annotation, so that the resulting |
|
56 |
* feature annotation can be used in conjunction with the {@link WebServiceRef} |
|
57 |
* annotation if necessary. |
|
58 |
* <p> |
|
59 |
* If a JAX-WS implementation encounters an annotation annotated |
|
60 |
* with the <code>WebServiceFeatureAnnotation</code> that it does not |
|
61 |
* recognize/support an error MUST be given. |
|
62 |
* <p> |
|
63 |
* |
|
64 |
* @see Addressing |
|
65 |
* @see MTOM |
|
66 |
* @see RespectBinding |
|
67 |
* |
|
68 |
* @since JAX-WS 2.1 |
|
69 |
*/ |
|
70 |
@Target(ElementType.ANNOTATION_TYPE) |
|
71 |
@Retention(RetentionPolicy.RUNTIME) |
|
72 |
@Documented |
|
73 |
public @interface WebServiceFeatureAnnotation { |
|
74 |
/** |
|
75 |
* Unique identifier for the WebServiceFeature. This |
|
76 |
* identifier MUST be unique across all implementations |
|
77 |
* of JAX-WS. |
|
78 |
*/ |
|
79 |
String id(); |
|
80 |
||
81 |
/** |
|
82 |
* The <code>WebServiceFeature</code> bean that is associated |
|
83 |
* with the <code>WebServiceFeature</code> annotation |
|
84 |
*/ |
|
85 |
Class<? extends WebServiceFeature> bean(); |
|
86 |
} |