org.codehaus.xfire.annotations
Class AnnotationServiceConfiguration

java.lang.Object
  extended by org.codehaus.xfire.service.binding.ServiceConfiguration
      extended by org.codehaus.xfire.service.binding.DefaultServiceConfiguration
          extended by org.codehaus.xfire.annotations.AnnotationServiceConfiguration

public class AnnotationServiceConfiguration
extends DefaultServiceConfiguration

Annotations-based implementation of the ServiceConfiguration class.

Author:
Dan Diephouse, Arjen Poutsma

Constructor Summary
AnnotationServiceConfiguration()
           
 
Method Summary
 java.lang.String getAction(OperationInfo op)
           
 javax.xml.namespace.QName getInParameterName(Service endpoint, OperationInfo op, java.lang.reflect.Method method, int paramNumber, boolean doc)
           
 java.lang.String getMEP(java.lang.reflect.Method method)
           
 java.lang.String getOperationName(ServiceInfo service, java.lang.reflect.Method method)
          Creates a name for the operation from the method name.
 javax.xml.namespace.QName getOutParameterName(Service endpoint, OperationInfo op, java.lang.reflect.Method method, int paramNumber, boolean doc)
           
 java.lang.Boolean isAsync(java.lang.reflect.Method method)
           
 java.lang.Boolean isHeader(java.lang.reflect.Method method, int paramNumber)
           
 java.lang.Boolean isInParam(java.lang.reflect.Method method, int j)
           
 java.lang.Boolean isOperation(java.lang.reflect.Method method)
          Returns true if the specified method is valid for a SOAP operation.
 java.lang.Boolean isOutParam(java.lang.reflect.Method method, int j)
           
 void setWebAnnotations(WebAnnotations webAnnotations)
           
 
Methods inherited from class org.codehaus.xfire.service.binding.DefaultServiceConfiguration
getFaultName, getInputMessageName, getOutputMessageName, getServiceFactory, hasOutMessage, setServiceFactory
 
Methods inherited from class org.codehaus.xfire.service.binding.ServiceConfiguration
getPortType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationServiceConfiguration

public AnnotationServiceConfiguration()
Method Detail

setWebAnnotations

public void setWebAnnotations(WebAnnotations webAnnotations)

getOperationName

public java.lang.String getOperationName(ServiceInfo service,
                                         java.lang.reflect.Method method)
Description copied from class: DefaultServiceConfiguration
Creates a name for the operation from the method name. If an operation with that name already exists, a name is create by appending an integer to the end. I.e. if there is already two methods named doSomething, the first one will have an operation name of "doSomething" and the second "doSomething1".

Overrides:
getOperationName in class DefaultServiceConfiguration

getAction

public java.lang.String getAction(OperationInfo op)
Overrides:
getAction in class DefaultServiceConfiguration

isOperation

public java.lang.Boolean isOperation(java.lang.reflect.Method method)
Returns true if the specified method is valid for a SOAP operation.

Overrides:
isOperation in class DefaultServiceConfiguration
Parameters:
method - the method.
Returns:
true if valid; false otherwise.

isHeader

public java.lang.Boolean isHeader(java.lang.reflect.Method method,
                                  int paramNumber)
Overrides:
isHeader in class DefaultServiceConfiguration

isInParam

public java.lang.Boolean isInParam(java.lang.reflect.Method method,
                                   int j)
Overrides:
isInParam in class DefaultServiceConfiguration

isOutParam

public java.lang.Boolean isOutParam(java.lang.reflect.Method method,
                                    int j)
Overrides:
isOutParam in class DefaultServiceConfiguration

getInParameterName

public javax.xml.namespace.QName getInParameterName(Service endpoint,
                                                    OperationInfo op,
                                                    java.lang.reflect.Method method,
                                                    int paramNumber,
                                                    boolean doc)
Overrides:
getInParameterName in class DefaultServiceConfiguration

getOutParameterName

public javax.xml.namespace.QName getOutParameterName(Service endpoint,
                                                     OperationInfo op,
                                                     java.lang.reflect.Method method,
                                                     int paramNumber,
                                                     boolean doc)
Overrides:
getOutParameterName in class DefaultServiceConfiguration

isAsync

public java.lang.Boolean isAsync(java.lang.reflect.Method method)
Overrides:
isAsync in class DefaultServiceConfiguration

getMEP

public java.lang.String getMEP(java.lang.reflect.Method method)
Overrides:
getMEP in class DefaultServiceConfiguration


Copyright © 2004-2006 Envoi Solutions LLC. All Rights Reserved.