KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > xml > ws > WebFault


1 /*
2  * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
3  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
4  */

5
6 package javax.xml.ws;
7
8 import java.lang.annotation.Documented JavaDoc;
9 import java.lang.annotation.Target JavaDoc;
10 import java.lang.annotation.Retention JavaDoc;
11 import java.lang.annotation.ElementType JavaDoc;
12 import java.lang.annotation.RetentionPolicy JavaDoc;
13
14 /**
15  * Used to annotate service specific exception classes to customize
16  * to the local and namespace name of the fault element and the name
17  * of the fault bean.
18  *
19  * @since JAX-WS 2.0
20 **/

21 @Target JavaDoc({ElementType.TYPE})
22 @Retention JavaDoc(RetentionPolicy.RUNTIME)
23 @Documented JavaDoc
24 public @interface WebFault {
25   /**
26    * Element's local name.
27   **/

28   public String JavaDoc name() default "";
29
30   /**
31    * Element's namespace name.
32   **/

33   public String JavaDoc targetNamespace() default "";
34
35   /**
36    * Fault bean name.
37   **/

38   public String JavaDoc faultBean() default "";
39 }
40
Popular Tags