52 * <p>
53 * <b>Example</b>: The <code>StockQuoteProvider</code>
54 * proxy instance, and the <code>StockQuoteService</code> service
55 * instance are injected using @WebServiceRefs.
56 *
57 * <pre><code>
58 * @WebServiceRefs({@WebServiceRef(name="service/stockquoteservice", value=StockQuoteService.class),
59 * @WebServiceRef(name="service/stockquoteprovider", type=StockQuoteProvider.class, value=StockQuoteService.class})
60 * public class MyClient {
61 * void init() {
62 * Context ic = new InitialContext();
63 * StockQuoteService service = (StockQuoteService) ic.lookup("java:comp/env/service/stockquoteservice");
64 * StockQuoteProvider port = (StockQuoteProvider) ic.lookup("java:comp/env/service/stockquoteprovider");
65 * ...
66 * }
67 * ...
68 * }
69 * </code></pre>
70 *
71 * @see WebServiceRef
72 * @since 2.0
73 */
74
75 @Documented
76 @Retention(RUNTIME)
77 @Target(TYPE)
78 public @interface WebServiceRefs {
79 /**
80 * Array used for multiple web service reference declarations.
81 */
82 WebServiceRef[] value();
83 }
|
52 * <p>
53 * <b>Example</b>: The <code>StockQuoteProvider</code>
54 * proxy instance, and the <code>StockQuoteService</code> service
55 * instance are injected using @WebServiceRefs.
56 *
57 * <pre><code>
58 * @WebServiceRefs({@WebServiceRef(name="service/stockquoteservice", value=StockQuoteService.class),
59 * @WebServiceRef(name="service/stockquoteprovider", type=StockQuoteProvider.class, value=StockQuoteService.class})
60 * public class MyClient {
61 * void init() {
62 * Context ic = new InitialContext();
63 * StockQuoteService service = (StockQuoteService) ic.lookup("java:comp/env/service/stockquoteservice");
64 * StockQuoteProvider port = (StockQuoteProvider) ic.lookup("java:comp/env/service/stockquoteprovider");
65 * ...
66 * }
67 * ...
68 * }
69 * </code></pre>
70 *
71 * @see WebServiceRef
72 * @since 1.6, JAX-WS 2.0
73 */
74
75 @Documented
76 @Retention(RUNTIME)
77 @Target(TYPE)
78 public @interface WebServiceRefs {
79 /**
80 * Array used for multiple web service reference declarations.
81 */
82 WebServiceRef[] value();
83 }
|