public abstract class JSR181Helper extends Object
NoClassDefFoundError
exceptions if the JAR is not in the classpath. This is useful
because these annotations are completely optional in Axis2.Modifier and Type | Field and Description |
---|---|
static JSR181Helper |
INSTANCE
The instance of this helper class.
|
Constructor and Description |
---|
JSR181Helper() |
Modifier and Type | Method and Description |
---|---|
abstract WebMethodAnnotation |
getWebMethodAnnotation(Method method)
Get the WebMethod annotation for a given method.
|
abstract WebParamAnnotation |
getWebParamAnnotation(Annotation[] annotations)
Get the WebParam annotation from a set of annotations.
|
abstract WebResultAnnotation |
getWebResultAnnotation(Method method)
Get the WebResult annotation for a given method.
|
abstract WebServiceAnnotation |
getWebServiceAnnotation(Class<?> clazz)
Get the WebService annotation for a given class.
|
public static final JSR181Helper INSTANCE
null
.public abstract WebServiceAnnotation getWebServiceAnnotation(Class<?> clazz)
clazz
- the classnull
if there is no such annotationpublic abstract WebMethodAnnotation getWebMethodAnnotation(Method method)
method
- the methodnull
if there is no such annotationpublic abstract WebParamAnnotation getWebParamAnnotation(Annotation[] annotations)
Method.getParameterAnnotations()
.annotations
- an array of annotationsnull
if the array didn't contain a WebParam
annotationpublic abstract WebResultAnnotation getWebResultAnnotation(Method method)
method
- the methodnull
if there is no such annotationCopyright © 2004–2017 The Apache Software Foundation. All rights reserved.