org.codehaus.xfire.annotations.commons
Class CommonsWebAttributes

java.lang.Object
  extended by org.codehaus.xfire.annotations.commons.CommonsWebAttributes
All Implemented Interfaces:
WebAnnotations

public class CommonsWebAttributes
extends java.lang.Object
implements WebAnnotations

Implementation of the WebAnnotations facade for Commons Attributes.

Author:
Arjen Poutsma

Constructor Summary
CommonsWebAttributes()
           
 
Method Summary
 java.util.Collection getFaultHandlers(java.lang.Class clazz)
           
 HandlerChainAnnotation getHandlerChainAnnotation(java.lang.Class aClass)
          Gets the HandlerChainAnnotation annotation from the given class, if found.
 java.util.Collection getInHandlers(java.lang.Class clazz)
           
 java.util.Collection getOutHandlers(java.lang.Class clazz)
           
 java.util.Map getServiceProperties(java.lang.Class clazz)
           
 SOAPBindingAnnotation getSOAPBindingAnnotation(java.lang.Class aClass)
          Gets the SOAPBindingAnnotation annotation from the given class, if found.
 WebMethodAnnotation getWebMethodAnnotation(java.lang.reflect.Method method)
          Gets the WebServiceAnnotation annotation from the given class, if found.
 WebParamAnnotation getWebParamAnnotation(java.lang.reflect.Method method, int parameter)
          Gets the WebParamAnnotation annotation from the indicated parameter of the given method, if found.
 WebResultAnnotation getWebResultAnnotation(java.lang.reflect.Method method)
          Gets the WebResultAnnotation annotation from the given method, if found.
 WebServiceAnnotation getWebServiceAnnotation(java.lang.Class aClass)
          Gets the WebServiceAnnotation annotation from the given class, if found.
 boolean hasHandlerChainAnnotation(java.lang.Class aClass)
          Tests whether the given class has the HandlerChainAnnotation annotation.
 boolean hasOnewayAnnotation(java.lang.reflect.Method method)
          Tests whether the given method has the one way annotation.
 boolean hasSOAPBindingAnnotation(java.lang.Class aClass)
          Tests whether the given class has the SOAPBindingAnnotation annotation.
 boolean hasWebMethodAnnotation(java.lang.reflect.Method method)
          Tests whether the given method has the WebMethodAnnotation annotation.
 boolean hasWebParamAnnotation(java.lang.reflect.Method method, int parameter)
          Tests whether the indicated parameter of the given method has the WebResultAnnotation annotation.
 boolean hasWebResultAnnotation(java.lang.reflect.Method method)
          Tests whether the given method has the WebResultAnnotation annotation.
 boolean hasWebServiceAnnotation(java.lang.Class aClass)
          Tests whether the given class has the WebServiceAnnotation annotation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonsWebAttributes

public CommonsWebAttributes()
Method Detail

hasWebServiceAnnotation

public boolean hasWebServiceAnnotation(java.lang.Class aClass)
Description copied from interface: WebAnnotations
Tests whether the given class has the WebServiceAnnotation annotation.

Specified by:
hasWebServiceAnnotation in interface WebAnnotations
Parameters:
aClass - the class.
Returns:
true if present; false otherwise.

getWebServiceAnnotation

public WebServiceAnnotation getWebServiceAnnotation(java.lang.Class aClass)
Description copied from interface: WebAnnotations
Gets the WebServiceAnnotation annotation from the given class, if found.

Specified by:
getWebServiceAnnotation in interface WebAnnotations
Parameters:
aClass - the class.
Returns:
the annotation; or null if it could not be found.

hasWebMethodAnnotation

public boolean hasWebMethodAnnotation(java.lang.reflect.Method method)
Description copied from interface: WebAnnotations
Tests whether the given method has the WebMethodAnnotation annotation.

Specified by:
hasWebMethodAnnotation in interface WebAnnotations
Parameters:
method - the method.
Returns:
true if present; false otherwise.

getWebMethodAnnotation

public WebMethodAnnotation getWebMethodAnnotation(java.lang.reflect.Method method)
Description copied from interface: WebAnnotations
Gets the WebServiceAnnotation annotation from the given class, if found.

Specified by:
getWebMethodAnnotation in interface WebAnnotations
Parameters:
method - the method.
Returns:
the annotation; or null if it could not be found.

hasWebResultAnnotation

public boolean hasWebResultAnnotation(java.lang.reflect.Method method)
Description copied from interface: WebAnnotations
Tests whether the given method has the WebResultAnnotation annotation.

Specified by:
hasWebResultAnnotation in interface WebAnnotations
Parameters:
method - the method.
Returns:
true if present; false otherwise.

getWebResultAnnotation

public WebResultAnnotation getWebResultAnnotation(java.lang.reflect.Method method)
Description copied from interface: WebAnnotations
Gets the WebResultAnnotation annotation from the given method, if found.

Specified by:
getWebResultAnnotation in interface WebAnnotations
Parameters:
method - the method.
Returns:
the annotation; or null if it could not be found.

hasWebParamAnnotation

public boolean hasWebParamAnnotation(java.lang.reflect.Method method,
                                     int parameter)
Description copied from interface: WebAnnotations
Tests whether the indicated parameter of the given method has the WebResultAnnotation annotation.

Specified by:
hasWebParamAnnotation in interface WebAnnotations
Parameters:
method - the method.
parameter - the index of the parameter in the method's parameter list.
Returns:
true> if present; false otherwise.

getWebParamAnnotation

public WebParamAnnotation getWebParamAnnotation(java.lang.reflect.Method method,
                                                int parameter)
Description copied from interface: WebAnnotations
Gets the WebParamAnnotation annotation from the indicated parameter of the given method, if found.

Specified by:
getWebParamAnnotation in interface WebAnnotations
Parameters:
method - the method.
parameter - the parameter index.
Returns:
the annotation; or null if it could not be found.

hasOnewayAnnotation

public boolean hasOnewayAnnotation(java.lang.reflect.Method method)
Description copied from interface: WebAnnotations
Tests whether the given method has the one way annotation.

Specified by:
hasOnewayAnnotation in interface WebAnnotations
Parameters:
method - the method.
Returns:
true if present; false otherwise.

hasSOAPBindingAnnotation

public boolean hasSOAPBindingAnnotation(java.lang.Class aClass)
Description copied from interface: WebAnnotations
Tests whether the given class has the SOAPBindingAnnotation annotation.

Specified by:
hasSOAPBindingAnnotation in interface WebAnnotations
Parameters:
aClass - the class.
Returns:
true> if present; false otherwise.

getSOAPBindingAnnotation

public SOAPBindingAnnotation getSOAPBindingAnnotation(java.lang.Class aClass)
Description copied from interface: WebAnnotations
Gets the SOAPBindingAnnotation annotation from the given class, if found.

Specified by:
getSOAPBindingAnnotation in interface WebAnnotations
Parameters:
aClass - the class.
Returns:
the annotation; or null if it could not be found.

hasHandlerChainAnnotation

public boolean hasHandlerChainAnnotation(java.lang.Class aClass)
Description copied from interface: WebAnnotations
Tests whether the given class has the HandlerChainAnnotation annotation.

Specified by:
hasHandlerChainAnnotation in interface WebAnnotations
Parameters:
aClass - the class.
Returns:
true> if present; false otherwise.

getHandlerChainAnnotation

public HandlerChainAnnotation getHandlerChainAnnotation(java.lang.Class aClass)
Description copied from interface: WebAnnotations
Gets the HandlerChainAnnotation annotation from the given class, if found.

Specified by:
getHandlerChainAnnotation in interface WebAnnotations
Parameters:
aClass - the class.
Returns:
the annotation; or null if it could not be found.

getServiceProperties

public java.util.Map getServiceProperties(java.lang.Class clazz)
Specified by:
getServiceProperties in interface WebAnnotations

getFaultHandlers

public java.util.Collection getFaultHandlers(java.lang.Class clazz)
Specified by:
getFaultHandlers in interface WebAnnotations

getInHandlers

public java.util.Collection getInHandlers(java.lang.Class clazz)
Specified by:
getInHandlers in interface WebAnnotations

getOutHandlers

public java.util.Collection getOutHandlers(java.lang.Class clazz)
Specified by:
getOutHandlers in interface WebAnnotations


Copyright © 2004-2008. All Rights Reserved.