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; 9 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 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({ElementType.TYPE}) 22 @Retention(RetentionPolicy.RUNTIME) 23 @Documented 24 public @interface WebFault { 25 /** 26 * Element's local name. 27 **/ 28 public String name() default ""; 29 30 /** 31 * Element's namespace name. 32 **/ 33 public String targetNamespace() default ""; 34 35 /** 36 * Fault bean name. 37 **/ 38 public String faultBean() default ""; 39 } 40