01: /*
02: * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
03: * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
04: */
05:
06: package javax.xml.ws;
07:
08: import java.lang.annotation.Documented;
09: import java.lang.annotation.Target;
10: import java.lang.annotation.Retention;
11: import java.lang.annotation.ElementType;
12: import java.lang.annotation.RetentionPolicy;
13:
14: /**
15: * Used to annotate methods in the Service Endpoint Interface with the response
16: * wrapper bean to be used at runtime. The default value of the <code>localName</code> is
17: * the <code>operationName</code> as defined in <code>WebMethod</code> annotation appended with
18: * <code>Response</code> and the <code>targetNamespace</code> is the target namespace of the SEI.
19: * <p> When starting from Java this annotation is used resolve
20: * overloading conflicts in document literal mode. Only the <code>className</code>
21: * is required in this case.
22: *
23: * @since JAX-WS 2.0
24: **/
25:
26: @Target(ElementType.METHOD)
27: @Retention(RetentionPolicy.RUNTIME)
28: @Documented
29: public @interface ResponseWrapper {
30:
31: /**
32:
33: * Element's local name.
34:
35: **/
36:
37: public String localName() default "";
38:
39: /**
40:
41: * Element's namespace name.
42:
43: **/
44:
45: public String targetNamespace() default "";
46:
47: /**
48:
49: * Response wrapper bean name.
50:
51: **/
52:
53: public String className() default "";
54:
55: }
|