< prev index next >

src/java.xml.ws/share/classes/javax/xml/ws/spi/WebServiceFeatureAnnotation.java

Print this page




  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 1.6, 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 }


  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}.
  43  * <p>
  44  * Each {@code WebServiceFeature} annotation annotated with
  45  * this annotation MUST contain an
  46  * {@code enabled} property of type
  47  * {@code boolean} with a default value of {@code true}.
  48  * <p>
  49  * JAX-WS defines the following
  50  * {@code WebServiceFeature} annotations ({@code Addressing},
  51  * {@code MTOM}, {@code RespectBinding}), however, an implementation
  52  * may define vendors specific annotations for other features.
  53  * <p>
  54  * Annotations annotated with {@code WebServiceFeatureAnnotation} 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} that it does not
  61  * recognize/support an error MUST be given.

  62  *
  63  * @see Addressing
  64  * @see MTOM
  65  * @see RespectBinding
  66  *
  67  * @since 1.6, JAX-WS 2.1
  68  */
  69 @Target(ElementType.ANNOTATION_TYPE)
  70 @Retention(RetentionPolicy.RUNTIME)
  71 @Documented
  72 public @interface WebServiceFeatureAnnotation {
  73     /**
  74      * Unique identifier for the WebServiceFeature.  This
  75      * identifier MUST be unique across all implementations
  76      * of JAX-WS.
  77      */
  78     String id();
  79 
  80     /**
  81      * The {@code WebServiceFeature} bean that is associated
  82      * with the {@code WebServiceFeature} annotation
  83      */
  84     Class<? extends WebServiceFeature> bean();
  85 }
< prev index next >