Class ReflectionServiceFactoryBean
java.lang.Object
org.apache.cxf.service.factory.AbstractServiceFactoryBean
org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean
- Direct Known Subclasses:
JaxWsServiceFactoryBean
Introspects a class and builds a
Service from it. If a WSDL URL is
specified, a Service model will be directly from the WSDL and then metadata
will be filled in from the service class. If no WSDL URL is specified, the
Service will be constructed directly from the class structure.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected Class<?>protected ParameterizedTypestatic final Stringprotected StringFields inherited from class org.apache.cxf.service.factory.AbstractServiceFactoryBean
dataBindingSet, schemaLocations -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected FaultInfoaddFault(InterfaceInfo service, OperationInfo op, Class<?> exClass) protected voidbindOperation(OperationInfo op, Method m) protected voidprotected voidprotected voidcheckForElement(ServiceInfo serviceInfo, MessagePartInfo mpi) protected voidcreate()protected voidcreateBareMessage(ServiceInfo serviceInfo, OperationInfo opInfo, boolean isOut) protected DataBindingprotected voidprotected voidcreateFaultForException(Class<?> exClass, FaultInfo fi) protected voidcreateInputWrappedMessageParts(OperationInfo op, Method method, MessageInfo inMsg) protected InterfaceInfocreateInterface(ServiceInfo serviceInfo) protected Invokerprotected voidcreateMessageParts(InterfaceInfo intf, OperationInfo op, Method method) protected OperationInfocreateOperation(ServiceInfo serviceInfo, InterfaceInfo intf, Method m) protected QNamecreateOutputMessageName(OperationInfo op, Method method) protected voidcreateOutputWrappedMessageParts(OperationInfo op, Method method, MessageInfo outMsg) protected ServiceInfoprotected voidcreateWrappedSchema(ServiceInfo serviceInfo, AbstractMessageContainer wrappedMessage, AbstractMessageContainer unwrappedMessage, QName wrapperBeanName) protected StringgetAction(OperationInfo op, Method method) booleanprotected Class<?>getBeanClass(Class<?> exClass) getEndpointName(boolean lookup) protected QNamegetFaultName(InterfaceInfo service, OperationInfo o, Class<?> exClass, Class<?> beanClass) getHolderType(Class<?> cls, Type type) protected QNamegetInParameterName(OperationInfo op, Method method, int paramNumber) protected QNamegetInPartName(OperationInfo op, Method method, int paramNumber) protected QNamegetInputMessageName(OperationInfo op, Method method) protected InterfaceInfoprotected QNamegetOperationName(InterfaceInfo service, Method method) Creates a name for the operation from the method name.protected QNamegetOutParameterName(OperationInfo op, Method method, int paramNumber) protected QNamegetOutPartName(OperationInfo op, Method method, int paramNumber) final booleanprotected Class<?>getRequestWrapper(Method selected) protected StringgetRequestWrapperClassName(Method selected) protected Class<?>getResponseWrapper(Method selected) protected StringgetResponseWrapperClassName(Method selected) Class<?>protected Stringprotected StringgetServiceQName(boolean lookup) getStyle()Returns non-null if wrapped mode was explicitely disabled or enabled.longlongprotected booleanbooleanhasWrappedMethods(InterfaceInfo interfaceInfo) protected booleaninitializeClassInfo(OperationInfo o, Method method, List<String> paramOrder) set the holder generic type info into message part infoprotected voidprotected voidprotected voidinitializeFaults(InterfaceInfo service, OperationInfo op, Method method) protected voidinitializeParameter(MessagePartInfo part, Class<?> rawClass, Type type) protected voidprotected voidprotected voidinitializeWrappedSchema(ServiceInfo serviceInfo) protected voidinitializeWSDLOperation(InterfaceInfo intf, OperationInfo o, Method method) protected voidbooleanprotected booleanprotected booleanbooleanbooleanprotected booleanisInOutParam(Method method, int j) protected booleanprotected booleanisMatchOperation(String methodNameInClass, String methodNameInWsdl) protected booleanisOutParam(Method method, int j) booleanbooleanbooleanprotected booleanisValidMethod(Method method) booleanprotected booleanbooleanprotected voidprocessTypes(Class<?> sc, Type tp) voidreset()voidsetAnonymousWrapperTypes(boolean b) voidsetConfigurations(List<AbstractServiceConfiguration> configurations) voidsetEndpointName(QName en) voidsetExecutor(Executor executor) voidsetFeatures(List<? extends Feature> features2) voidsetIgnoredClasses(List<String> ignoredClasses) voidsetIgnoredMethods(List<Method> ignoredMethods) voidsetInvoker(Invoker invoker) protected voidvoidsetPopulateFromClass(boolean fomClass) voidsetProperties(Map<String, Object> properties) voidsetQualifyWrapperSchema(boolean b) voidsetSchemaLocations(List<String> schemaLocations) voidsetServiceClass(Class<?> serviceClass) voidsetServiceConfigurations(List<AbstractServiceConfiguration> serviceConfigurations) voidsetServiceName(QName serviceName) protected voidvoidsetServiceType(ParameterizedType servicetype) voidsetValidate(boolean validate) If 'validate' is true, this class will validate the service.voidsetWrapped(boolean style) voidsetWsdlURL(String wsdlURL) voidsetWsdlURL(URL wsdlURL) voidvoidMethods inherited from class org.apache.cxf.service.factory.AbstractServiceFactoryBean
getBus, getDataBinding, getDataBinding, getService, getSessionState, initializeDataBindings, sendEvent, setBus, setDataBinding, setService
-
Field Details
-
ENDPOINT_CLASS
- See Also:
-
GENERIC_TYPE
- See Also:
-
RAW_CLASS
- See Also:
-
WRAPPERGEN_NEEDED
- See Also:
-
EXTRA_CLASS
- See Also:
-
MODE_OUT
- See Also:
-
MODE_INOUT
- See Also:
-
HOLDER
- See Also:
-
HEADER
- See Also:
-
ELEMENT_NAME
- See Also:
-
METHOD
- See Also:
-
FORCE_TYPES
- See Also:
-
METHOD_PARAM_ANNOTATIONS
- See Also:
-
METHOD_ANNOTATIONS
- See Also:
-
PARAM_ANNOTATION
- See Also:
-
wsdlURL
-
serviceClass
-
serviceType
-
parameterizedTypes
-
schemaLocationMapping
-
-
Constructor Details
-
ReflectionServiceFactoryBean
public ReflectionServiceFactoryBean()
-
-
Method Details
-
createDefaultDataBinding
- Overrides:
createDefaultDataBindingin classAbstractServiceFactoryBean
-
reset
public void reset() -
create
- Specified by:
createin classAbstractServiceFactoryBean
-
createEndpoints
protected void createEndpoints() -
updateBindingOperation
-
createEndpoint
- Throws:
EndpointException
-
initializeServiceConfigurations
protected void initializeServiceConfigurations() -
setServiceProperties
protected void setServiceProperties() -
buildServiceFromWSDL
-
buildServiceFromClass
protected void buildServiceFromClass() -
hasWrappedMethods
-
isFromWsdl
protected boolean isFromWsdl() -
initializeServiceModel
protected void initializeServiceModel() -
validateServiceModel
public void validateServiceModel() -
isPopulateFromClass
public boolean isPopulateFromClass() -
setPopulateFromClass
public void setPopulateFromClass(boolean fomClass) -
getInterfaceInfo
-
initializeWSDLOperations
protected void initializeWSDLOperations() -
initializeWSDLOperation
-
initializeClassInfo
set the holder generic type info into message part info- Parameters:
o-method-
-
createInvoker
-
createServiceInfo
-
createInterface
-
createOperation
-
bindOperation
-
initializeWrappedSchema
-
checkForElement
-
getAnonymousWrapperTypes
public boolean getAnonymousWrapperTypes() -
isAnonymousWrapperTypes
public boolean isAnonymousWrapperTypes() -
setAnonymousWrapperTypes
public void setAnonymousWrapperTypes(boolean b) -
getQualifyWrapperSchema
public final boolean getQualifyWrapperSchema() -
isQualifyWrapperSchema
public boolean isQualifyWrapperSchema() -
setQualifyWrapperSchema
public void setQualifyWrapperSchema(boolean b) -
createWrappedSchema
protected void createWrappedSchema(ServiceInfo serviceInfo, AbstractMessageContainer wrappedMessage, AbstractMessageContainer unwrappedMessage, QName wrapperBeanName) -
createBareMessage
-
createMessageParts
-
createInputWrappedMessageParts
-
createOutputWrappedMessageParts
-
initializeParameter
-
getServiceQName
-
getServiceQName
-
getEndpointName
-
getEndpointName
-
getEndpointInfo
-
setEndpointName
-
getServiceName
-
getServiceNamespace
-
getInterfaceName
-
isValidMethod
-
isHolder
-
getHolderType
-
isWrapped
-
isMatchOperation
-
isOutParam
-
isInParam
-
isInOutParam
-
getInputMessageName
-
createOutputMessageName
-
hasOutMessage
-
initializeFaults
-
initializeDefaultInterceptors
protected void initializeDefaultInterceptors()- Overrides:
initializeDefaultInterceptorsin classAbstractServiceFactoryBean
-
initializeFaultInterceptors
protected void initializeFaultInterceptors() -
addFault
-
createFaultForException
-
getBeanClass
-
getFaultName
protected QName getFaultName(InterfaceInfo service, OperationInfo o, Class<?> exClass, Class<?> beanClass) -
getAction
-
isHeader
-
getOperationName
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 nameddoSomething, the first one will have an operation name of "doSomething" and the second "doSomething1".- Parameters:
service-method-
-
isAsync
-
getInPartName
-
getInParameterName
-
getOutParameterName
-
getOutPartName
-
getResponseWrapper
-
getResponseWrapperClassName
-
getRequestWrapper
-
getRequestWrapperClassName
-
isWrapperPartQualified
-
isWrapperPartNillable
-
getWrapperPartMaxOccurs
-
getWrapperPartMinOccurs
-
getMethodDispatcher
-
setMethodDispatcher
-
getConfigurations
-
setConfigurations
-
getServiceClass
-
processTypes
-
setServiceType
-
setServiceClass
-
checkServiceClassAnnotations
-
getWsdlURL
-
setWsdlURL
-
setWsdlURL
-
getServiceConfigurations
-
setServiceConfigurations
-
setServiceName
-
getInvoker
-
setInvoker
-
getExecutor
-
setExecutor
-
getIgnoredClasses
-
setIgnoredClasses
-
getExtraClass
-
isWrapped
public boolean isWrapped() -
getStyle
-
isRPC
-
setWrapped
public void setWrapped(boolean style) -
getWrapped
Returns non-null if wrapped mode was explicitely disabled or enabled. -
getProperties
-
setProperties
-
getIgnoredMethods
-
setIgnoredMethods
-
getFeatures
-
setFeatures
-
setValidate
public void setValidate(boolean validate) If 'validate' is true, this class will validate the service. It will report problems with the service model and the XML schema for the service.- Parameters:
validate-
-
setSchemaLocations
-