Class ReflectionServiceFactoryBean

  • Direct Known Subclasses:
    JaxWsServiceFactoryBean

    public class ReflectionServiceFactoryBean
    extends AbstractServiceFactoryBean
    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.
    • Constructor Detail

      • ReflectionServiceFactoryBean

        public ReflectionServiceFactoryBean()
    • Method Detail

      • reset

        public void reset()
      • createEndpoints

        protected void createEndpoints()
      • initializeServiceConfigurations

        protected void initializeServiceConfigurations()
      • setServiceProperties

        protected void setServiceProperties()
      • buildServiceFromWSDL

        protected void buildServiceFromWSDL​(String url)
      • buildServiceFromClass

        protected void buildServiceFromClass()
      • hasWrappedMethods

        public boolean hasWrappedMethods​(InterfaceInfo interfaceInfo)
      • isFromWsdl

        protected boolean isFromWsdl()
      • initializeServiceModel

        protected void initializeServiceModel()
      • validateServiceModel

        public void validateServiceModel()
      • isPopulateFromClass

        public boolean isPopulateFromClass()
      • setPopulateFromClass

        public void setPopulateFromClass​(boolean fomClass)
      • initializeWSDLOperations

        protected void initializeWSDLOperations()
      • initializeClassInfo

        protected boolean initializeClassInfo​(OperationInfo o,
                                              Method method,
                                              List<String> paramOrder)
        set the holder generic type info into message part info
        Parameters:
        o -
        method -
      • createInvoker

        protected Invoker createInvoker()
      • initializeWrappedSchema

        protected void initializeWrappedSchema​(ServiceInfo serviceInfo)
      • 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)
      • createBareMessage

        protected void createBareMessage​(ServiceInfo serviceInfo,
                                         OperationInfo opInfo,
                                         boolean isOut)
      • getServiceQName

        public QName getServiceQName()
      • getServiceQName

        public QName getServiceQName​(boolean lookup)
      • getEndpointName

        public QName getEndpointName()
      • getEndpointName

        public QName getEndpointName​(boolean lookup)
      • setEndpointName

        public void setEndpointName​(QName en)
      • getServiceName

        protected String getServiceName()
      • getServiceNamespace

        protected String getServiceNamespace()
      • getInterfaceName

        public QName getInterfaceName()
      • isValidMethod

        protected boolean isValidMethod​(Method method)
      • isHolder

        public boolean isHolder​(Class<?> cls,
                                Type type)
      • getHolderType

        public Type getHolderType​(Class<?> cls,
                                  Type type)
      • isWrapped

        protected boolean isWrapped​(Method method)
      • isMatchOperation

        protected boolean isMatchOperation​(String methodNameInClass,
                                           String methodNameInWsdl)
      • isOutParam

        protected boolean isOutParam​(Method method,
                                     int j)
      • isInParam

        protected boolean isInParam​(Method method,
                                    int j)
      • isInOutParam

        protected boolean isInOutParam​(Method method,
                                       int j)
      • hasOutMessage

        protected boolean hasOutMessage​(Method m)
      • initializeFaultInterceptors

        protected void initializeFaultInterceptors()
      • createFaultForException

        protected void createFaultForException​(Class<?> exClass,
                                               FaultInfo fi)
      • getBeanClass

        protected Class<?> getBeanClass​(Class<?> exClass)
      • isHeader

        public boolean isHeader​(Method method,
                                int j)
      • getOperationName

        protected QName getOperationName​(InterfaceInfo service,
                                         Method method)
        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".
        Parameters:
        service -
        method -
      • isAsync

        protected boolean isAsync​(Method method)
      • getResponseWrapper

        protected Class<?> getResponseWrapper​(Method selected)
      • getResponseWrapperClassName

        protected String getResponseWrapperClassName​(Method selected)
      • getRequestWrapper

        protected Class<?> getRequestWrapper​(Method selected)
      • getRequestWrapperClassName

        protected String getRequestWrapperClassName​(Method selected)
      • isWrapperPartNillable

        public boolean isWrapperPartNillable​(MessagePartInfo mpi)
      • getWrapperPartMaxOccurs

        public long getWrapperPartMaxOccurs​(MessagePartInfo mpi)
      • getWrapperPartMinOccurs

        public long getWrapperPartMinOccurs​(MessagePartInfo mpi)
      • setMethodDispatcher

        protected void setMethodDispatcher​(MethodDispatcher m)
      • getServiceClass

        public Class<?> getServiceClass()
      • processTypes

        protected void processTypes​(Class<?> sc,
                                    Type tp)
      • setServiceClass

        public void setServiceClass​(Class<?> serviceClass)
      • checkServiceClassAnnotations

        protected void checkServiceClassAnnotations​(Class<?> sc)
      • getWsdlURL

        public String getWsdlURL()
      • setWsdlURL

        public void setWsdlURL​(String wsdlURL)
      • setWsdlURL

        public void setWsdlURL​(URL wsdlURL)
      • setServiceName

        public void setServiceName​(QName serviceName)
      • getInvoker

        public Invoker getInvoker()
      • setInvoker

        public void setInvoker​(Invoker invoker)
      • getExecutor

        public Executor getExecutor()
      • setExecutor

        public void setExecutor​(Executor executor)
      • getIgnoredClasses

        public List<String> getIgnoredClasses()
      • setIgnoredClasses

        public void setIgnoredClasses​(List<String> ignoredClasses)
      • getExtraClass

        protected Set<Class<?>> getExtraClass()
      • isWrapped

        public boolean isWrapped()
      • getStyle

        public String getStyle()
      • isRPC

        public boolean isRPC​(Method method)
      • setWrapped

        public void setWrapped​(boolean style)
      • getWrapped

        public Boolean getWrapped()
        Returns non-null if wrapped mode was explicitely disabled or enabled.
      • setProperties

        public void setProperties​(Map<String,​Object> properties)
      • getIgnoredMethods

        public List<Method> getIgnoredMethods()
      • setIgnoredMethods

        public void setIgnoredMethods​(List<Method> ignoredMethods)
      • setFeatures

        public void setFeatures​(List<? extends Feature> features2)
      • 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

        public void setSchemaLocations​(List<String> schemaLocations)