public class ReflectionServiceFactoryBean
extends org.apache.cxf.service.factory.AbstractServiceFactoryBean
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.| Modifier and Type | Field and Description |
|---|---|
static String |
ELEMENT_NAME |
static String |
ENDPOINT_CLASS |
static String |
EXTRA_CLASS |
static String |
FORCE_TYPES |
static String |
GENERIC_TYPE |
static String |
HEADER |
static String |
HOLDER |
static String |
METHOD |
static String |
METHOD_ANNOTATIONS |
static String |
METHOD_PARAM_ANNOTATIONS |
static String |
MODE_INOUT |
static String |
MODE_OUT |
static String |
PARAM_ANNOTATION |
protected Map<Type,Map<String,Class<?>>> |
parameterizedTypes |
static String |
RAW_CLASS |
protected Map<String,String> |
schemaLocationMapping |
protected Class<?> |
serviceClass |
protected ParameterizedType |
serviceType |
static String |
WRAPPERGEN_NEEDED |
protected String |
wsdlURL |
| Constructor and Description |
|---|
ReflectionServiceFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.cxf.service.model.FaultInfo |
addFault(org.apache.cxf.service.model.InterfaceInfo service,
org.apache.cxf.service.model.OperationInfo op,
Class<?> exClass) |
protected void |
bindOperation(org.apache.cxf.service.model.OperationInfo op,
Method m) |
protected void |
buildServiceFromClass() |
protected void |
buildServiceFromWSDL(String url) |
protected void |
checkForElement(org.apache.cxf.service.model.ServiceInfo serviceInfo,
org.apache.cxf.service.model.MessagePartInfo mpi) |
protected void |
checkServiceClassAnnotations(Class<?> sc) |
org.apache.cxf.service.Service |
create() |
protected void |
createBareMessage(org.apache.cxf.service.model.ServiceInfo serviceInfo,
org.apache.cxf.service.model.OperationInfo opInfo,
boolean isOut) |
protected org.apache.cxf.databinding.DataBinding |
createDefaultDataBinding() |
org.apache.cxf.endpoint.Endpoint |
createEndpoint(org.apache.cxf.service.model.EndpointInfo ei) |
protected void |
createEndpoints() |
protected void |
createFaultForException(Class<?> exClass,
org.apache.cxf.service.model.FaultInfo fi) |
protected void |
createInputWrappedMessageParts(org.apache.cxf.service.model.OperationInfo op,
Method method,
org.apache.cxf.service.model.MessageInfo inMsg) |
protected org.apache.cxf.service.model.InterfaceInfo |
createInterface(org.apache.cxf.service.model.ServiceInfo serviceInfo) |
protected org.apache.cxf.service.invoker.Invoker |
createInvoker() |
protected void |
createMessageParts(org.apache.cxf.service.model.InterfaceInfo intf,
org.apache.cxf.service.model.OperationInfo op,
Method method) |
protected org.apache.cxf.service.model.OperationInfo |
createOperation(org.apache.cxf.service.model.ServiceInfo serviceInfo,
org.apache.cxf.service.model.InterfaceInfo intf,
Method m) |
protected QName |
createOutputMessageName(org.apache.cxf.service.model.OperationInfo op,
Method method) |
protected void |
createOutputWrappedMessageParts(org.apache.cxf.service.model.OperationInfo op,
Method method,
org.apache.cxf.service.model.MessageInfo outMsg) |
protected org.apache.cxf.service.model.ServiceInfo |
createServiceInfo(org.apache.cxf.service.model.InterfaceInfo intf) |
protected void |
createWrappedSchema(org.apache.cxf.service.model.ServiceInfo serviceInfo,
org.apache.cxf.service.model.AbstractMessageContainer wrappedMessage,
org.apache.cxf.service.model.AbstractMessageContainer unwrappedMessage,
QName wrapperBeanName) |
protected String |
getAction(org.apache.cxf.service.model.OperationInfo op,
Method method) |
boolean |
getAnonymousWrapperTypes() |
protected Class<?> |
getBeanClass(Class<?> exClass) |
List<AbstractServiceConfiguration> |
getConfigurations() |
org.apache.cxf.service.model.EndpointInfo |
getEndpointInfo() |
QName |
getEndpointName() |
QName |
getEndpointName(boolean lookup) |
Executor |
getExecutor() |
protected Set<Class<?>> |
getExtraClass() |
protected QName |
getFaultName(org.apache.cxf.service.model.InterfaceInfo service,
org.apache.cxf.service.model.OperationInfo o,
Class<?> exClass,
Class<?> beanClass) |
List<org.apache.cxf.feature.Feature> |
getFeatures() |
Type |
getHolderType(Class<?> cls,
Type type) |
List<String> |
getIgnoredClasses() |
List<Method> |
getIgnoredMethods() |
protected QName |
getInParameterName(org.apache.cxf.service.model.OperationInfo op,
Method method,
int paramNumber) |
protected QName |
getInPartName(org.apache.cxf.service.model.OperationInfo op,
Method method,
int paramNumber) |
protected QName |
getInputMessageName(org.apache.cxf.service.model.OperationInfo op,
Method method) |
protected org.apache.cxf.service.model.InterfaceInfo |
getInterfaceInfo() |
QName |
getInterfaceName() |
org.apache.cxf.service.invoker.Invoker |
getInvoker() |
org.apache.cxf.service.invoker.MethodDispatcher |
getMethodDispatcher() |
protected QName |
getOperationName(org.apache.cxf.service.model.InterfaceInfo service,
Method method)
Creates a name for the operation from the method name.
|
protected QName |
getOutParameterName(org.apache.cxf.service.model.OperationInfo op,
Method method,
int paramNumber) |
protected QName |
getOutPartName(org.apache.cxf.service.model.OperationInfo op,
Method method,
int paramNumber) |
Map<String,Object> |
getProperties() |
boolean |
getQualifyWrapperSchema() |
protected Class<?> |
getRequestWrapper(Method selected) |
protected String |
getRequestWrapperClassName(Method selected) |
protected Class<?> |
getResponseWrapper(Method selected) |
protected String |
getResponseWrapperClassName(Method selected) |
Class<?> |
getServiceClass() |
List<AbstractServiceConfiguration> |
getServiceConfigurations() |
protected String |
getServiceName() |
protected String |
getServiceNamespace() |
QName |
getServiceQName() |
QName |
getServiceQName(boolean lookup) |
String |
getStyle() |
Boolean |
getWrapped()
Returns non-null if wrapped mode was explicitely disabled or enabled.
|
long |
getWrapperPartMaxOccurs(org.apache.cxf.service.model.MessagePartInfo mpi) |
long |
getWrapperPartMinOccurs(org.apache.cxf.service.model.MessagePartInfo mpi) |
String |
getWsdlURL() |
protected boolean |
hasOutMessage(Method m) |
boolean |
hasWrappedMethods(org.apache.cxf.service.model.InterfaceInfo interfaceInfo) |
protected boolean |
initializeClassInfo(org.apache.cxf.service.model.OperationInfo o,
Method method,
List<String> paramOrder)
set the holder generic type info into message part info
|
protected void |
initializeDefaultInterceptors() |
protected void |
initializeFaultInterceptors() |
protected void |
initializeFaults(org.apache.cxf.service.model.InterfaceInfo service,
org.apache.cxf.service.model.OperationInfo op,
Method method) |
protected void |
initializeParameter(org.apache.cxf.service.model.MessagePartInfo part,
Class<?> rawClass,
Type type) |
protected void |
initializeServiceConfigurations() |
protected void |
initializeServiceModel() |
protected void |
initializeWrappedSchema(org.apache.cxf.service.model.ServiceInfo serviceInfo) |
protected void |
initializeWSDLOperation(org.apache.cxf.service.model.InterfaceInfo intf,
org.apache.cxf.service.model.OperationInfo o,
Method method) |
protected void |
initializeWSDLOperations() |
boolean |
isAnonymousWrapperTypes() |
protected boolean |
isAsync(Method method) |
protected boolean |
isFromWsdl() |
boolean |
isHeader(Method method,
int j) |
boolean |
isHolder(Class<?> cls,
Type type) |
protected boolean |
isInParam(Method method,
int j) |
protected boolean |
isMatchOperation(String methodNameInClass,
String methodNameInWsdl) |
protected boolean |
isOutParam(Method method,
int j) |
boolean |
isPopulateFromClass() |
boolean |
isQualifyWrapperSchema() |
boolean |
isRPC(Method method) |
protected boolean |
isValidMethod(Method method) |
boolean |
isWrapped() |
protected boolean |
isWrapped(Method method) |
boolean |
isWrapperPartNillable(org.apache.cxf.service.model.MessagePartInfo mpi) |
boolean |
isWrapperPartQualified(org.apache.cxf.service.model.MessagePartInfo mpi) |
protected void |
processTypes(Class<?> sc,
Type tp) |
void |
reset() |
void |
setAnonymousWrapperTypes(boolean b) |
void |
setConfigurations(List<AbstractServiceConfiguration> configurations) |
void |
setEndpointName(QName en) |
void |
setExecutor(Executor executor) |
void |
setFeatures(List<? extends org.apache.cxf.feature.Feature> features2) |
void |
setIgnoredClasses(List<String> ignoredClasses) |
void |
setIgnoredMethods(List<Method> ignoredMethods) |
void |
setInvoker(org.apache.cxf.service.invoker.Invoker invoker) |
protected void |
setMethodDispatcher(org.apache.cxf.service.invoker.MethodDispatcher m) |
void |
setPopulateFromClass(boolean fomClass) |
void |
setProperties(Map<String,Object> properties) |
void |
setQualifyWrapperSchema(boolean b) |
void |
setSchemaLocations(List<String> schemaLocations) |
void |
setServiceClass(Class<?> serviceClass) |
void |
setServiceConfigurations(List<AbstractServiceConfiguration> serviceConfigurations) |
void |
setServiceName(QName serviceName) |
protected void |
setServiceProperties() |
void |
setServiceType(ParameterizedType servicetype) |
void |
setValidate(boolean validate)
If 'validate' is true, this class will validate the service.
|
void |
setWrapped(boolean style) |
void |
setWsdlURL(String wsdlURL) |
void |
setWsdlURL(URL wsdlURL) |
void |
updateBindingOperation(org.apache.cxf.service.model.BindingOperationInfo boi) |
void |
validateServiceModel() |
public static final String ENDPOINT_CLASS
public static final String GENERIC_TYPE
public static final String RAW_CLASS
public static final String WRAPPERGEN_NEEDED
public static final String EXTRA_CLASS
public static final String MODE_OUT
public static final String MODE_INOUT
public static final String HOLDER
public static final String HEADER
public static final String ELEMENT_NAME
public static final String METHOD
public static final String FORCE_TYPES
public static final String METHOD_PARAM_ANNOTATIONS
public static final String METHOD_ANNOTATIONS
public static final String PARAM_ANNOTATION
protected String wsdlURL
protected Class<?> serviceClass
protected ParameterizedType serviceType
protected org.apache.cxf.databinding.DataBinding createDefaultDataBinding()
createDefaultDataBinding in class org.apache.cxf.service.factory.AbstractServiceFactoryBeanpublic void reset()
public org.apache.cxf.service.Service create()
create in class org.apache.cxf.service.factory.AbstractServiceFactoryBeanprotected void createEndpoints()
public void updateBindingOperation(org.apache.cxf.service.model.BindingOperationInfo boi)
public org.apache.cxf.endpoint.Endpoint createEndpoint(org.apache.cxf.service.model.EndpointInfo ei)
throws org.apache.cxf.endpoint.EndpointException
org.apache.cxf.endpoint.EndpointExceptionprotected void initializeServiceConfigurations()
protected void setServiceProperties()
protected void buildServiceFromWSDL(String url)
protected void buildServiceFromClass()
public boolean hasWrappedMethods(org.apache.cxf.service.model.InterfaceInfo interfaceInfo)
protected boolean isFromWsdl()
protected void initializeServiceModel()
public void validateServiceModel()
public boolean isPopulateFromClass()
public void setPopulateFromClass(boolean fomClass)
protected org.apache.cxf.service.model.InterfaceInfo getInterfaceInfo()
protected void initializeWSDLOperations()
protected void initializeWSDLOperation(org.apache.cxf.service.model.InterfaceInfo intf,
org.apache.cxf.service.model.OperationInfo o,
Method method)
protected boolean initializeClassInfo(org.apache.cxf.service.model.OperationInfo o,
Method method,
List<String> paramOrder)
o - method - protected org.apache.cxf.service.invoker.Invoker createInvoker()
protected org.apache.cxf.service.model.ServiceInfo createServiceInfo(org.apache.cxf.service.model.InterfaceInfo intf)
protected org.apache.cxf.service.model.InterfaceInfo createInterface(org.apache.cxf.service.model.ServiceInfo serviceInfo)
protected org.apache.cxf.service.model.OperationInfo createOperation(org.apache.cxf.service.model.ServiceInfo serviceInfo,
org.apache.cxf.service.model.InterfaceInfo intf,
Method m)
protected void bindOperation(org.apache.cxf.service.model.OperationInfo op,
Method m)
protected void initializeWrappedSchema(org.apache.cxf.service.model.ServiceInfo serviceInfo)
protected void checkForElement(org.apache.cxf.service.model.ServiceInfo serviceInfo,
org.apache.cxf.service.model.MessagePartInfo mpi)
public boolean getAnonymousWrapperTypes()
public boolean isAnonymousWrapperTypes()
public void setAnonymousWrapperTypes(boolean b)
public final boolean getQualifyWrapperSchema()
public boolean isQualifyWrapperSchema()
public void setQualifyWrapperSchema(boolean b)
protected void createWrappedSchema(org.apache.cxf.service.model.ServiceInfo serviceInfo,
org.apache.cxf.service.model.AbstractMessageContainer wrappedMessage,
org.apache.cxf.service.model.AbstractMessageContainer unwrappedMessage,
QName wrapperBeanName)
protected void createBareMessage(org.apache.cxf.service.model.ServiceInfo serviceInfo,
org.apache.cxf.service.model.OperationInfo opInfo,
boolean isOut)
protected void createMessageParts(org.apache.cxf.service.model.InterfaceInfo intf,
org.apache.cxf.service.model.OperationInfo op,
Method method)
protected void createInputWrappedMessageParts(org.apache.cxf.service.model.OperationInfo op,
Method method,
org.apache.cxf.service.model.MessageInfo inMsg)
protected void createOutputWrappedMessageParts(org.apache.cxf.service.model.OperationInfo op,
Method method,
org.apache.cxf.service.model.MessageInfo outMsg)
protected void initializeParameter(org.apache.cxf.service.model.MessagePartInfo part,
Class<?> rawClass,
Type type)
public QName getServiceQName()
public QName getServiceQName(boolean lookup)
public QName getEndpointName()
public QName getEndpointName(boolean lookup)
public org.apache.cxf.service.model.EndpointInfo getEndpointInfo()
public void setEndpointName(QName en)
protected String getServiceName()
protected String getServiceNamespace()
public QName getInterfaceName()
protected boolean isValidMethod(Method method)
protected boolean isWrapped(Method method)
protected boolean isMatchOperation(String methodNameInClass, String methodNameInWsdl)
protected boolean isOutParam(Method method, int j)
protected boolean isInParam(Method method, int j)
protected QName getInputMessageName(org.apache.cxf.service.model.OperationInfo op, Method method)
protected QName createOutputMessageName(org.apache.cxf.service.model.OperationInfo op, Method method)
protected boolean hasOutMessage(Method m)
protected void initializeFaults(org.apache.cxf.service.model.InterfaceInfo service,
org.apache.cxf.service.model.OperationInfo op,
Method method)
protected void initializeDefaultInterceptors()
initializeDefaultInterceptors in class org.apache.cxf.service.factory.AbstractServiceFactoryBeanprotected void initializeFaultInterceptors()
protected org.apache.cxf.service.model.FaultInfo addFault(org.apache.cxf.service.model.InterfaceInfo service,
org.apache.cxf.service.model.OperationInfo op,
Class<?> exClass)
protected void createFaultForException(Class<?> exClass, org.apache.cxf.service.model.FaultInfo fi)
protected QName getFaultName(org.apache.cxf.service.model.InterfaceInfo service, org.apache.cxf.service.model.OperationInfo o, Class<?> exClass, Class<?> beanClass)
public boolean isHeader(Method method, int j)
protected QName getOperationName(org.apache.cxf.service.model.InterfaceInfo service, Method method)
doSomething, the first one will have an operation name of
"doSomething" and the second "doSomething1".service - method - protected boolean isAsync(Method method)
protected QName getInPartName(org.apache.cxf.service.model.OperationInfo op, Method method, int paramNumber)
protected QName getInParameterName(org.apache.cxf.service.model.OperationInfo op, Method method, int paramNumber)
protected QName getOutParameterName(org.apache.cxf.service.model.OperationInfo op, Method method, int paramNumber)
protected QName getOutPartName(org.apache.cxf.service.model.OperationInfo op, Method method, int paramNumber)
public boolean isWrapperPartQualified(org.apache.cxf.service.model.MessagePartInfo mpi)
public boolean isWrapperPartNillable(org.apache.cxf.service.model.MessagePartInfo mpi)
public long getWrapperPartMaxOccurs(org.apache.cxf.service.model.MessagePartInfo mpi)
public long getWrapperPartMinOccurs(org.apache.cxf.service.model.MessagePartInfo mpi)
public org.apache.cxf.service.invoker.MethodDispatcher getMethodDispatcher()
protected void setMethodDispatcher(org.apache.cxf.service.invoker.MethodDispatcher m)
public List<AbstractServiceConfiguration> getConfigurations()
public void setConfigurations(List<AbstractServiceConfiguration> configurations)
public Class<?> getServiceClass()
public void setServiceType(ParameterizedType servicetype)
public void setServiceClass(Class<?> serviceClass)
protected void checkServiceClassAnnotations(Class<?> sc)
public String getWsdlURL()
public void setWsdlURL(String wsdlURL)
public void setWsdlURL(URL wsdlURL)
public List<AbstractServiceConfiguration> getServiceConfigurations()
public void setServiceConfigurations(List<AbstractServiceConfiguration> serviceConfigurations)
public void setServiceName(QName serviceName)
public org.apache.cxf.service.invoker.Invoker getInvoker()
public void setInvoker(org.apache.cxf.service.invoker.Invoker invoker)
public Executor getExecutor()
public void setExecutor(Executor executor)
public boolean isWrapped()
public String getStyle()
public boolean isRPC(Method method)
public void setWrapped(boolean style)
public Boolean getWrapped()
public List<org.apache.cxf.feature.Feature> getFeatures()
public void setFeatures(List<? extends org.apache.cxf.feature.Feature> features2)
public void setValidate(boolean validate)
validate - Apache CXF