org.codehaus.xfire.jaxws
Class JAXWSServiceFactory

java.lang.Object
  extended by org.codehaus.xfire.service.binding.ObjectServiceFactory
      extended by org.codehaus.xfire.annotations.AnnotationServiceFactory
          extended by org.codehaus.xfire.jaxws.JAXWSServiceFactory
All Implemented Interfaces:
ServiceFactory

public class JAXWSServiceFactory
extends AnnotationServiceFactory

Creates JAX-WS services from a service class.

Author:
Dan Diephouse

Field Summary
 
Fields inherited from class org.codehaus.xfire.annotations.AnnotationServiceFactory
ALLOW_INTERFACE
 
Fields inherited from class org.codehaus.xfire.service.binding.ObjectServiceFactory
CREATE_DEFAULT_BINDINGS, PORT_NAME, PORT_TYPE, SCHEMAS, SCOPE, SOAP11_TRANSPORTS, SOAP12_TRANSPORTS, STYLE, USE
 
Constructor Summary
JAXWSServiceFactory()
           
JAXWSServiceFactory(TransportManager transportManager)
           
 
Method Summary
protected  FaultInfo addFault(Service service, OperationInfo op, java.lang.Class exClazz)
           
protected  OperationInfo addOperation(Service endpoint, java.lang.reflect.Method method, java.lang.String style)
           
 void createBindingOperation(Service service, AbstractSoapBinding binding, OperationInfo op)
           
protected  javax.xml.namespace.QName createInputMessageName(OperationInfo op)
           
protected  javax.xml.namespace.QName createOutputMessageName(OperationInfo op)
           
protected  javax.xml.namespace.QName getFaultName(Service service, OperationInfo o, java.lang.Class exClass, java.lang.Class beanClass)
           
 java.lang.String getOperationName(ServiceInfo service, java.lang.reflect.Method method)
          Creates a name for the operation from the method name.
protected  MessageSerializer getSerializer(AbstractSoapBinding binding)
           
protected  boolean isFaultInfoClass(java.lang.Class exClass)
           
protected  void registerHandlers(Service service)
           
 
Methods inherited from class org.codehaus.xfire.annotations.AnnotationServiceFactory
create, create, createPortType, createServiceName, createServiceNamespace, getAnnotations, getValidator, loadClass, setValidator
 
Methods inherited from class org.codehaus.xfire.service.binding.ObjectServiceFactory
addIgnoredMethods, addSoap11Transport, addSoap12Transport, configureHeaders, create, create, create, createBindings, createDocumentationProvider, createEndpoint, createSoap11Binding, createSoap12Binding, createSoapBinding, getAction, getBindingProvider, getCustomTypesMapping, getDocumentationProvider, getIgnoredClasses, getInParameterName, getMEP, getOutParameterName, getServiceConfigurations, getSoap11Transports, getSoap12Transports, getStyle, getTargetNamespace, getTransportManager, getUse, getWsdlBuilderFactory, hasOutMessage, initializeFaults, initializeOperations, isAsync, isBindingCreationEnabled, isCustomFaultsEnabled, isHeader, isInParam, isOutParam, isValidMethod, isVoidOneWay, makeServiceNameFromClassName, setBindingCreationEnabled, setBindingProvider, setCustomFaultsEnabled, setCustomTypesMapping, setDocumentationProvider, setServiceConfigurations, setStyle, setTransportManager, setUse, setVoidOneWay, setWsdlBuilderFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.codehaus.xfire.service.ServiceFactory
create, create
 

Constructor Detail

JAXWSServiceFactory

public JAXWSServiceFactory()

JAXWSServiceFactory

public JAXWSServiceFactory(TransportManager transportManager)
Method Detail

getOperationName

public java.lang.String getOperationName(ServiceInfo service,
                                         java.lang.reflect.Method method)
Description copied from class: ObjectServiceFactory
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 ObjectServiceFactory

registerHandlers

protected void registerHandlers(Service service)
Overrides:
registerHandlers in class ObjectServiceFactory

addOperation

protected OperationInfo addOperation(Service endpoint,
                                     java.lang.reflect.Method method,
                                     java.lang.String style)
Overrides:
addOperation in class ObjectServiceFactory

addFault

protected FaultInfo addFault(Service service,
                             OperationInfo op,
                             java.lang.Class exClazz)
Overrides:
addFault in class ObjectServiceFactory

isFaultInfoClass

protected boolean isFaultInfoClass(java.lang.Class exClass)
Overrides:
isFaultInfoClass in class ObjectServiceFactory

getFaultName

protected javax.xml.namespace.QName getFaultName(Service service,
                                                 OperationInfo o,
                                                 java.lang.Class exClass,
                                                 java.lang.Class beanClass)
Overrides:
getFaultName in class ObjectServiceFactory

getSerializer

protected MessageSerializer getSerializer(AbstractSoapBinding binding)
Overrides:
getSerializer in class ObjectServiceFactory

createBindingOperation

public void createBindingOperation(Service service,
                                   AbstractSoapBinding binding,
                                   OperationInfo op)
Overrides:
createBindingOperation in class ObjectServiceFactory

createInputMessageName

protected javax.xml.namespace.QName createInputMessageName(OperationInfo op)
Overrides:
createInputMessageName in class ObjectServiceFactory

createOutputMessageName

protected javax.xml.namespace.QName createOutputMessageName(OperationInfo op)
Overrides:
createOutputMessageName in class ObjectServiceFactory


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