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 import java.lang.annotation.Inherited; 14 15 /** 16 * Used to indicate whether a {@link Provider} implementation wishes to work 17 * with entire protocol messages or just with protocol message payloads. 18 * 19 * @since JAX-WS 2.0 20 **/ 21 @Target({ElementType.TYPE}) 22 @Retention(RetentionPolicy.RUNTIME) 23 @Inherited 24 @Documented 25 public @interface ServiceMode { 26 /** 27 * Service mode. <code>PAYLOAD</code> indicates that the <code>Provider</code> implementation 28 * wishes to work with protocol message payloads only. <code>MESSAGE</code> indicates 29 * that the <code>Provider</code> implementation wishes to work with entire protocol 30 * messages. 31 **/ 32 public Service.Mode value() default Service.Mode.PAYLOAD; 33 } 34