|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axis2.jsr181.JSR181Helper
public abstract class JSR181Helper
Helper class to work with JSR 181 annotations. This class should be used to retrieve JSR 181
annotations. It avoids the direct dependency on the API, i.e. it avoids
NoClassDefFoundError
exceptions if the JAR is not in the classpath. This is useful
because these annotations are completely optional in Axis2.
Field Summary | |
---|---|
static JSR181Helper |
INSTANCE
The instance of this helper class. |
Constructor Summary | |
---|---|
JSR181Helper()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final JSR181Helper INSTANCE
null
.
Constructor Detail |
---|
public JSR181Helper()
Method Detail |
---|
public abstract WebServiceAnnotation getWebServiceAnnotation(Class<?> clazz)
clazz
- the class
null
if there is no such annotationpublic abstract WebMethodAnnotation getWebMethodAnnotation(Method method)
method
- the method
null
if there is no such annotationpublic abstract WebParamAnnotation getWebParamAnnotation(Annotation[] annotations)
Method.getParameterAnnotations()
.
annotations
- an array of annotations
null
if the array didn't contain a WebParam
annotationpublic abstract WebResultAnnotation getWebResultAnnotation(Method method)
method
- the method
null
if there is no such annotation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |