Top Description Methods
javax.xml.ws.spi

public @Interface WebServiceFeatureAnnotation

extends Annotation
Annotations
@Target:ANNOTATION_TYPE
@Retention:RUNTIME
@Documented
Imports
java.lang.annotation.Documented, .Target, .ElementType, .Retention, .RetentionPolicy, javax.xml.ws.WebServiceFeature, .WebServiceRef, .RespectBinding, javax.xml.ws.soap.Addressing, .MTOM

Annotation used to identify other annotations as a WebServiceFeature.

Each WebServiceFeature annotation annotated with this annotation MUST contain an enabled property of type boolean with a default value of true.

JAX-WS defines the following WebServiceFeature annotations (Addressing, MTOM, RespectBinding), however, an implementation may define vendors specific annotations for other features.

Annotations annotated with WebServiceFeatureAnnotation MUST have the same @Target of WebServiceRef annotation, so that the resulting feature annotation can be used in conjunction with the WebServiceRef annotation if necessary.

If a JAX-WS implementation encounters an annotation annotated with the WebServiceFeatureAnnotation that it does not recognize/support an error MUST be given.

Since
1.6, JAX-WS 2.1
See Also
Addressing, MTOM, RespectBinding

Method Summary

Modifier and TypeMethod and Description
public Class<? extends WebServiceFeature>

Returns:

the WebServiceFeature bean
bean
()

The WebServiceFeature bean that is associated with the WebServiceFeature annotation

public String

Returns:

unique identifier for the WebServiceFeature
id
()

Unique identifier for the WebServiceFeature.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

beanback to summary
public Class<? extends WebServiceFeature> bean()

The WebServiceFeature bean that is associated with the WebServiceFeature annotation

Returns:Class<? extends WebServiceFeature>

the WebServiceFeature bean

idback to summary
public String id()

Unique identifier for the WebServiceFeature. This identifier MUST be unique across all implementations of JAX-WS.

Returns:String

unique identifier for the WebServiceFeature