jaxws/src/share/classes/javax/xml/ws/WebServiceRef.java
author duke
Wed, 05 Jul 2017 16:53:22 +0200
changeset 2775 c33e7d38c921
parent 2678 57cf2a1c1a05
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8
474761f14bca Initial load
duke
parents:
diff changeset
     1
/*
2678
57cf2a1c1a05 6831313: update jaxws in OpenJDK7 to 2.1 plus bug fixes from OpenJDK 6
tbell
parents: 8
diff changeset
     2
 * Copyright 2005-2006 Sun Microsystems, Inc.  All Rights Reserved.
8
474761f14bca Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
474761f14bca Initial load
duke
parents:
diff changeset
     4
 *
474761f14bca Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
474761f14bca Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
474761f14bca Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Sun designates this
474761f14bca Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
474761f14bca Initial load
duke
parents:
diff changeset
     9
 * by Sun in the LICENSE file that accompanied this code.
474761f14bca Initial load
duke
parents:
diff changeset
    10
 *
474761f14bca Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
474761f14bca Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
474761f14bca Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
474761f14bca Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
474761f14bca Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
474761f14bca Initial load
duke
parents:
diff changeset
    16
 *
474761f14bca Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
474761f14bca Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
474761f14bca Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
474761f14bca Initial load
duke
parents:
diff changeset
    20
 *
474761f14bca Initial load
duke
parents:
diff changeset
    21
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
474761f14bca Initial load
duke
parents:
diff changeset
    22
 * CA 95054 USA or visit www.sun.com if you need additional information or
474761f14bca Initial load
duke
parents:
diff changeset
    23
 * have any questions.
474761f14bca Initial load
duke
parents:
diff changeset
    24
 */
474761f14bca Initial load
duke
parents:
diff changeset
    25
474761f14bca Initial load
duke
parents:
diff changeset
    26
package javax.xml.ws;
474761f14bca Initial load
duke
parents:
diff changeset
    27
474761f14bca Initial load
duke
parents:
diff changeset
    28
import java.lang.annotation.Documented;
474761f14bca Initial load
duke
parents:
diff changeset
    29
import java.lang.annotation.Target;
474761f14bca Initial load
duke
parents:
diff changeset
    30
import java.lang.annotation.ElementType;
474761f14bca Initial load
duke
parents:
diff changeset
    31
import java.lang.annotation.Retention;
474761f14bca Initial load
duke
parents:
diff changeset
    32
import java.lang.annotation.RetentionPolicy;
474761f14bca Initial load
duke
parents:
diff changeset
    33
474761f14bca Initial load
duke
parents:
diff changeset
    34
/**
474761f14bca Initial load
duke
parents:
diff changeset
    35
 *  The <code>WebServiceRef</code> annotation is used to
474761f14bca Initial load
duke
parents:
diff changeset
    36
 *  define a reference to a web service and
474761f14bca Initial load
duke
parents:
diff changeset
    37
 *  (optionally) an injection target for it.
474761f14bca Initial load
duke
parents:
diff changeset
    38
 *
474761f14bca Initial load
duke
parents:
diff changeset
    39
 *  Web service references are resources in the Java EE 5 sense.
474761f14bca Initial load
duke
parents:
diff changeset
    40
 *
474761f14bca Initial load
duke
parents:
diff changeset
    41
 *  @see javax.annotation.Resource
474761f14bca Initial load
duke
parents:
diff changeset
    42
 *
474761f14bca Initial load
duke
parents:
diff changeset
    43
 *  @since JAX-WS 2.0
474761f14bca Initial load
duke
parents:
diff changeset
    44
 *
474761f14bca Initial load
duke
parents:
diff changeset
    45
**/
474761f14bca Initial load
duke
parents:
diff changeset
    46
474761f14bca Initial load
duke
parents:
diff changeset
    47
@Target({ElementType.TYPE, ElementType.METHOD, ElementType.FIELD})
474761f14bca Initial load
duke
parents:
diff changeset
    48
@Retention(RetentionPolicy.RUNTIME)
474761f14bca Initial load
duke
parents:
diff changeset
    49
@Documented
474761f14bca Initial load
duke
parents:
diff changeset
    50
public @interface WebServiceRef {
474761f14bca Initial load
duke
parents:
diff changeset
    51
     /**
474761f14bca Initial load
duke
parents:
diff changeset
    52
      * The JNDI name of the resource.  For field annotations,
474761f14bca Initial load
duke
parents:
diff changeset
    53
      * the default is the field name.  For method annotations,
474761f14bca Initial load
duke
parents:
diff changeset
    54
      * the default is the JavaBeans property name corresponding
474761f14bca Initial load
duke
parents:
diff changeset
    55
      * to the method.  For class annotations, there is no default
2678
57cf2a1c1a05 6831313: update jaxws in OpenJDK7 to 2.1 plus bug fixes from OpenJDK 6
tbell
parents: 8
diff changeset
    56
      * and this MUST be specified.
8
474761f14bca Initial load
duke
parents:
diff changeset
    57
      */
474761f14bca Initial load
duke
parents:
diff changeset
    58
     String name() default "";
474761f14bca Initial load
duke
parents:
diff changeset
    59
474761f14bca Initial load
duke
parents:
diff changeset
    60
     /**
474761f14bca Initial load
duke
parents:
diff changeset
    61
      * The Java type of the resource.  For field annotations,
474761f14bca Initial load
duke
parents:
diff changeset
    62
      * the default is the type of the field.  For method annotations,
474761f14bca Initial load
duke
parents:
diff changeset
    63
      * the default is the type of the JavaBeans property.
2678
57cf2a1c1a05 6831313: update jaxws in OpenJDK7 to 2.1 plus bug fixes from OpenJDK 6
tbell
parents: 8
diff changeset
    64
      * For class annotations, there is no default and this MUST be
8
474761f14bca Initial load
duke
parents:
diff changeset
    65
      * specified.
474761f14bca Initial load
duke
parents:
diff changeset
    66
      */
474761f14bca Initial load
duke
parents:
diff changeset
    67
     Class type() default Object.class ;
474761f14bca Initial load
duke
parents:
diff changeset
    68
474761f14bca Initial load
duke
parents:
diff changeset
    69
     /**
474761f14bca Initial load
duke
parents:
diff changeset
    70
      * A product specific name that this resource should be mapped to.
474761f14bca Initial load
duke
parents:
diff changeset
    71
      * The name of this resource, as defined by the <code>name</code>
474761f14bca Initial load
duke
parents:
diff changeset
    72
      * element or defaulted, is a name that is local to the application
474761f14bca Initial load
duke
parents:
diff changeset
    73
      * component using the resource.  (It's a name in the JNDI
474761f14bca Initial load
duke
parents:
diff changeset
    74
      * <code>java:comp/env</code> namespace.)  Many application servers
474761f14bca Initial load
duke
parents:
diff changeset
    75
      * provide a way to map these local names to names of resources
474761f14bca Initial load
duke
parents:
diff changeset
    76
      * known to the application server.  This mapped name is often a
474761f14bca Initial load
duke
parents:
diff changeset
    77
      * <i>global</i> JNDI name, but may be a name of any form. <p>
474761f14bca Initial load
duke
parents:
diff changeset
    78
      *
474761f14bca Initial load
duke
parents:
diff changeset
    79
      * Application servers are not required to support any particular
474761f14bca Initial load
duke
parents:
diff changeset
    80
      * form or type of mapped name, nor the ability to use mapped names.
474761f14bca Initial load
duke
parents:
diff changeset
    81
      * The mapped name is product-dependent and often installation-dependent.
474761f14bca Initial load
duke
parents:
diff changeset
    82
      * No use of a mapped name is portable.
474761f14bca Initial load
duke
parents:
diff changeset
    83
      */
474761f14bca Initial load
duke
parents:
diff changeset
    84
     String mappedName() default "";
474761f14bca Initial load
duke
parents:
diff changeset
    85
474761f14bca Initial load
duke
parents:
diff changeset
    86
     /**
474761f14bca Initial load
duke
parents:
diff changeset
    87
      * The service class, always a type extending
2678
57cf2a1c1a05 6831313: update jaxws in OpenJDK7 to 2.1 plus bug fixes from OpenJDK 6
tbell
parents: 8
diff changeset
    88
      * <code>javax.xml.ws.Service</code>. This element MUST be specified
8
474761f14bca Initial load
duke
parents:
diff changeset
    89
      * whenever the type of the reference is a service endpoint interface.
474761f14bca Initial load
duke
parents:
diff changeset
    90
      */
474761f14bca Initial load
duke
parents:
diff changeset
    91
     Class value() default Object.class ;
474761f14bca Initial load
duke
parents:
diff changeset
    92
474761f14bca Initial load
duke
parents:
diff changeset
    93
     /**
474761f14bca Initial load
duke
parents:
diff changeset
    94
      * A URL pointing to the WSDL document for the web service.
474761f14bca Initial load
duke
parents:
diff changeset
    95
      * If not specified, the WSDL location specified by annotations
474761f14bca Initial load
duke
parents:
diff changeset
    96
      * on the resource type is used instead.
474761f14bca Initial load
duke
parents:
diff changeset
    97
      */
474761f14bca Initial load
duke
parents:
diff changeset
    98
     String wsdlLocation() default "";
474761f14bca Initial load
duke
parents:
diff changeset
    99
}