org.apache.cxf.jaxws.support
Class JaxWsServiceFactoryBean

java.lang.Object
  extended by org.apache.cxf.service.factory.AbstractServiceFactoryBean
      extended by org.apache.cxf.service.factory.ReflectionServiceFactoryBean
          extended by org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean

public class JaxWsServiceFactoryBean
extends org.apache.cxf.service.factory.ReflectionServiceFactoryBean

Constructs a service model from JAX-WS service endpoint classes. Works with both @@WebServiceProvider and @@WebService annotated classes.

See Also:
JaxWsServerFactoryBean

Field Summary
static java.lang.String WS_FEATURES
           
 
Fields inherited from class org.apache.cxf.service.factory.ReflectionServiceFactoryBean
ELEMENT_NAME, ENDPOINT_CLASS, EXTRA_CLASS, GENERIC_TYPE, HEADER, HOLDER, METHOD, METHOD_ANNOTATIONS, METHOD_PARAM_ANNOTATIONS, MODE_INOUT, MODE_OUT, PARAM_ANNOTATION, RAW_CLASS, schemaLocationMapping, serviceClass, WRAPPERGEN_NEEDED, wsdlURL
 
Constructor Summary
JaxWsServiceFactoryBean()
           
JaxWsServiceFactoryBean(JaxWsImplementorInfo implInfo)
           
 
Method Summary
protected  void buildServiceFromClass()
           
 org.apache.cxf.service.Service create()
           
 org.apache.cxf.endpoint.Endpoint createEndpoint(org.apache.cxf.service.model.EndpointInfo ei)
           
protected  org.apache.cxf.service.model.OperationInfo createOperation(org.apache.cxf.service.model.ServiceInfo serviceInfo, org.apache.cxf.service.model.InterfaceInfo intf, java.lang.reflect.Method m)
           
protected  java.lang.Class<?> getBeanClass(java.lang.Class<?> exClass)
          Create a mock service model with two operations - invoke and invokeOneway.
protected  java.util.Set<java.lang.Class<?>> getExtraClass()
           
 JaxWsImplementorInfo getJaxWsImplementorInfo()
           
 java.util.List<javax.xml.ws.WebServiceFeature> getWsFeatures()
           
protected  void initConfiguration(JaxWsImplementorInfo ii)
           
protected  void initializeDefaultInterceptors()
           
protected  void initializeFaultInterceptors()
           
protected  void initializeWSDLOperation(org.apache.cxf.service.model.InterfaceInfo intf, org.apache.cxf.service.model.OperationInfo o, java.lang.reflect.Method method)
           
protected  void initializeWSDLOperations()
           
protected  void initializeWSDLOperationsForProvider()
           
 void setJaxWsConfiguration(JaxWsServiceConfiguration jaxWsConfiguration)
           
 void setJaxWsImplementorInfo(JaxWsImplementorInfo jaxWsImplementorInfo)
           
 void setServiceClass(java.lang.Class<?> serviceClass)
           
 void setWsFeatures(java.util.List<javax.xml.ws.WebServiceFeature> wsFeatures)
           
 
Methods inherited from class org.apache.cxf.service.factory.ReflectionServiceFactoryBean
addFault, buildServiceFromWSDL, checkForElement, createBareMessage, createDefaultDataBinding, createEndpoints, createFaultForException, createInputWrappedMessageParts, createInterface, createInvoker, createMessageParts, createOutputMessageName, createOutputWrappedMessageParts, createServiceInfo, createWrappedSchema, getAction, getAnonymousWrapperTypes, getConfigurations, getEndpointInfo, getEndpointName, getEndpointName, getExecutor, getFaultName, getFeatures, getHolderType, getIgnoredClasses, getIgnoredMethods, getInParameterName, getInPartName, getInputMessageName, getInterfaceInfo, getInterfaceName, getInvoker, getMethodDispatcher, getOperationName, getOutParameterName, getOutPartName, getProperties, getQualifyWrapperSchema, getRequestWrapper, getRequestWrapperClassName, getResponseWrapper, getResponseWrapperClassName, getServiceClass, getServiceConfigurations, getServiceName, getServiceNamespace, getServiceQName, getServiceQName, getStyle, getWrapped, getWrapperPartMaxOccurs, getWrapperPartMinOccurs, getWsdlURL, hasOutMessage, initializeClassInfo, initializeFaults, initializeParameter, initializeServiceConfigurations, initializeServiceModel, initializeWrappedSchema, isAnonymousWrapperTypes, isAsync, isFromWsdl, isHeader, isHolder, isInParam, isMatchOperation, isOutParam, isPopulateFromClass, isQualifyWrapperSchema, isRPC, isValidMethod, isWrapped, isWrapped, isWrapperPartNillable, setAnonymousWrapperTypes, setConfigurations, setEndpointName, setExecutor, setFeatures, setIgnoredClasses, setIgnoredMethods, setInvoker, setMethodDispatcher, setPopulateFromClass, setProperties, setQualifyWrapperSchema, setServiceConfigurations, setServiceName, setServiceProperties, setWrapped, setWsdlURL, setWsdlURL, updateBindingOperation, validateServiceModel
 
Methods inherited from class org.apache.cxf.service.factory.AbstractServiceFactoryBean
getBus, getDataBinding, getService, initializeDataBindings, setBus, setDataBinding, setService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WS_FEATURES

public static final java.lang.String WS_FEATURES
See Also:
Constant Field Values
Constructor Detail

JaxWsServiceFactoryBean

public JaxWsServiceFactoryBean()

JaxWsServiceFactoryBean

public JaxWsServiceFactoryBean(JaxWsImplementorInfo implInfo)
Method Detail

create

public org.apache.cxf.service.Service create()
Overrides:
create in class org.apache.cxf.service.factory.ReflectionServiceFactoryBean

setServiceClass

public void setServiceClass(java.lang.Class<?> serviceClass)
Overrides:
setServiceClass in class org.apache.cxf.service.factory.ReflectionServiceFactoryBean

initializeDefaultInterceptors

protected void initializeDefaultInterceptors()
Overrides:
initializeDefaultInterceptors in class org.apache.cxf.service.factory.ReflectionServiceFactoryBean

initializeFaultInterceptors

protected void initializeFaultInterceptors()
Overrides:
initializeFaultInterceptors in class org.apache.cxf.service.factory.ReflectionServiceFactoryBean

createEndpoint

public org.apache.cxf.endpoint.Endpoint createEndpoint(org.apache.cxf.service.model.EndpointInfo ei)
                                                throws org.apache.cxf.endpoint.EndpointException
Overrides:
createEndpoint in class org.apache.cxf.service.factory.ReflectionServiceFactoryBean
Throws:
org.apache.cxf.endpoint.EndpointException

initializeWSDLOperation

protected void initializeWSDLOperation(org.apache.cxf.service.model.InterfaceInfo intf,
                                       org.apache.cxf.service.model.OperationInfo o,
                                       java.lang.reflect.Method method)
Overrides:
initializeWSDLOperation in class org.apache.cxf.service.factory.ReflectionServiceFactoryBean

initializeWSDLOperations

protected void initializeWSDLOperations()
Overrides:
initializeWSDLOperations in class org.apache.cxf.service.factory.ReflectionServiceFactoryBean

initializeWSDLOperationsForProvider

protected void initializeWSDLOperationsForProvider()

getBeanClass

protected java.lang.Class<?> getBeanClass(java.lang.Class<?> exClass)
Create a mock service model with two operations - invoke and invokeOneway.

Overrides:
getBeanClass in class org.apache.cxf.service.factory.ReflectionServiceFactoryBean

setJaxWsConfiguration

public void setJaxWsConfiguration(JaxWsServiceConfiguration jaxWsConfiguration)

getJaxWsImplementorInfo

public JaxWsImplementorInfo getJaxWsImplementorInfo()

setJaxWsImplementorInfo

public void setJaxWsImplementorInfo(JaxWsImplementorInfo jaxWsImplementorInfo)

initConfiguration

protected final void initConfiguration(JaxWsImplementorInfo ii)

getWsFeatures

public java.util.List<javax.xml.ws.WebServiceFeature> getWsFeatures()

setWsFeatures

public void setWsFeatures(java.util.List<javax.xml.ws.WebServiceFeature> wsFeatures)

createOperation

protected org.apache.cxf.service.model.OperationInfo createOperation(org.apache.cxf.service.model.ServiceInfo serviceInfo,
                                                                     org.apache.cxf.service.model.InterfaceInfo intf,
                                                                     java.lang.reflect.Method m)
Overrides:
createOperation in class org.apache.cxf.service.factory.ReflectionServiceFactoryBean

getExtraClass

protected java.util.Set<java.lang.Class<?>> getExtraClass()
Overrides:
getExtraClass in class org.apache.cxf.service.factory.ReflectionServiceFactoryBean

buildServiceFromClass

protected void buildServiceFromClass()
Overrides:
buildServiceFromClass in class org.apache.cxf.service.factory.ReflectionServiceFactoryBean


Apache CXF