Examples of DescriptionBuilderComposite


Examples of org.apache.axis2.jaxws.description.builder.DescriptionBuilderComposite

     */
    ServiceDescriptionImpl(Class serviceImplClass, AxisService axisService) {
        if (log.isDebugEnabled()) {
            log.debug("ServiceDescriptionImpl(Class,AxisService)");
        }
        composite = new DescriptionBuilderComposite();
        composite.setIsDeprecatedServiceProviderConstruction(true);
        composite.setIsServiceProvider(true);
        isServerSide = true;

        // Create the EndpointDescription hierachy from the service impl annotations; Since the PortQName is null,
View Full Code Here

Examples of org.apache.axis2.jaxws.description.builder.DescriptionBuilderComposite

                //in the tooling that allows for the wsdllocation to be specifed on either the
                //impl. class, or the SEI, or both. So, we need to look for the wsdl as follows:
                //          1. If the Wsdl exists on the SEI, then check for it on the impl.
                //          2. If it is not found in either location, in that order, then generate

                DescriptionBuilderComposite seic =
                        getDBCMap().get(composite.getWebServiceAnnot().endpointInterface());

                try {
                    if (seic == null) {
                        if (log.isDebugEnabled()) {
                            log.debug("The SEI class " + composite.getWebServiceAnnot().endpointInterface() + " was not found.");
                        }
                    }
                    if (seic != null && seic.getWsdlDefinition() != null) {
                        // set the wsdl def from the SEI composite
                        if (log.isDebugEnabled()) {
                            log.debug("Get the wsdl definition from the SEI composite.");
                        }
                        URL url = seic.getWsdlURL();
                        this.wsdlURL = url.toString();
                        if (log.isDebugEnabled() ) {
                            if (configContext != null) {
                                log.debug("new WSDL4JWrapper-ConfigContext not null2");
                            } else {
                                log.debug("new WSDL4JWrapper-ConfigContext null2");
                            }
                        }
                        this.wsdlWrapper =
                                new WSDL4JWrapper(seic.getWsdlURL(),
                                                  seic.getWsdlDefinition(),
                                                  configContext,
                                                  this.catalogManager);
                           
                    } else if (composite.getWsdlDefinition() != null) {
                        //set the wsdl def from the impl. class composite
                        if (log.isDebugEnabled()) {
                            log.debug("Get the wsdl definition from the impl class composite.");
                        }
                        if (log.isDebugEnabled() ) {
                            if (configContext != null) {
                                log.debug("new WSDL4JWrapper-ConfigContext not null3");
                            } else {
                                log.debug("new WSDL4JWrapper-ConfigContext null3");
                            }
                        }
                        URL url = composite.getWsdlURL();
                        this.wsdlURL = url == null ? null : url.toString();
                        this.wsdlWrapper = new WSDL4JWrapper(composite.getWsdlURL(),
                                                             composite.getWsdlDefinition(),
                                                             configContext,
                                                             this.catalogManager);
                                                           
                    } else {
                      String wsdlLocation = null;
                      // first check to see if the wsdlLocation is on the SEI
                      if(seic != null
                          &&
                          seic.getWebServiceAnnot() != null) {
                          if (log.isDebugEnabled()) {
                              log.debug("Get the wsdl location from the SEI composite.");
                          }
                          wsdlLocation = seic.getWebServiceAnnot().wsdlLocation();
                      }
                     
                      // now check the impl
                      if(wsdlLocation == null
                              ||
View Full Code Here

Examples of org.apache.axis2.jaxws.description.builder.DescriptionBuilderComposite

                }

                //    setWebServiceAnnotDefaults(true=impl); Must happen before we start checking annot
                if (!DescriptionUtils.isEmpty(composite.getWebServiceAnnot().endpointInterface())) {

                    DescriptionBuilderComposite seic =
                            dbcMap.get(composite.getWebServiceAnnot().endpointInterface());

                    //Verify that we can find the SEI in the composite list
                    if (seic == null) {
                        throw ExceptionFactory.makeWebServiceException(
View Full Code Here

Examples of org.apache.axis2.jaxws.description.builder.DescriptionBuilderComposite

     *
     * @param methodList The current collection of methods, including overloaded ones
     * @param dbc The composite to be checked for methods to be added to the collection
     */
    private void addSuperClassMethods(List<MethodDescriptionComposite> methodList, DescriptionBuilderComposite dbc) {
        DescriptionBuilderComposite superDBC = dbcMap.get(dbc.getSuperClassName());
        if (superDBC != null) {
            Iterator<MethodDescriptionComposite> mIter = superDBC.getMethodDescriptionsList().iterator();
            while (mIter.hasNext()) {
                MethodDescriptionComposite mdc = mIter.next();
                methodList.add(mdc);
            }
            addSuperClassMethods(methodList, superDBC);
View Full Code Here

Examples of org.apache.axis2.jaxws.description.builder.DescriptionBuilderComposite

     */
    public HandlerChainsType getHandlerChain(Object sparseCompositeKey) {
        // If there is a HandlerChainsType in the sparse composite for this ServiceDelegate
        // (i.e. this sparseCompositeKey), then return that.
        if (sparseCompositeKey != null) {
            DescriptionBuilderComposite sparseComposite = composite.getSparseComposite(sparseCompositeKey);
            if (sparseComposite != null && sparseComposite.getHandlerChainsType() != null) {
                return sparseComposite.getHandlerChainsType();
            }
        }
       
        // If there is no HandlerChainsType in the composite, then read in the file specified
        // on the HandlerChain annotation if it is present.
View Full Code Here

Examples of org.apache.axis2.jaxws.description.builder.DescriptionBuilderComposite

                            Object sparseCompositeKey) {

        // TODO: This and the other constructor will (eventually) take the same args, so the logic needs to be combined
        // TODO: If there is WSDL, could compare the namespace of the defn against the portQName.namespace
        this.parentServiceDescription = parent;
        composite = new DescriptionBuilderComposite();
        composite.setSparseComposite(sparseCompositeKey, sparseComposite);
        composite.setCorrespondingClass(theClass);
        ClassLoader loader = (ClassLoader) AccessController.doPrivileged(
                new PrivilegedAction() {
                    public Object run() {
View Full Code Here

Examples of org.apache.axis2.jaxws.description.builder.DescriptionBuilderComposite

                //in the tooling that allows for the wsdllocation to be specifed on either the
                //impl. class, or the SEI, or both. So, we need to look for the wsdl as follows:
                //      1. If the Wsdl exists on the SEI, then check for it on the impl.
                //      2. If it is not found in either location, in that order, then generate
   
                DescriptionBuilderComposite seic =
                        getServiceDescriptionImpl().getDBCMap()
                                .get(composite.getWebServiceAnnot().endpointInterface());
   
                //Only generate WSDL if a definition doesn't already exist
                if (seic.getWsdlDefinition() == null)
                    wsdlComposite = generateWSDL(composite);
            }

        } else if (composite.getWsdlDefinition() == null) {
            //This is a SOAP12 binding that does not contain a WSDL definition, log a WARNING
View Full Code Here

Examples of org.apache.axis2.jaxws.description.builder.DescriptionBuilderComposite

     * @deprecated
     */
    EndpointDescriptionImpl(Class theClass, QName portName, AxisService axisService,
                            ServiceDescriptionImpl parent) {
        this.parentServiceDescription = parent;
        composite = new DescriptionBuilderComposite();
        composite.setIsDeprecatedServiceProviderConstruction(true);
        composite.setIsServiceProvider(true);
        this.portQName = portName;
        composite.setCorrespondingClass(theClass);
        ClassLoader loader = (ClassLoader) AccessController.doPrivileged(
View Full Code Here

Examples of org.apache.axis2.jaxws.description.builder.DescriptionBuilderComposite

                //If this is not an implicit SEI, then make sure that its not on the SEI
                if (composite.isServiceProvider() && !composite.isDeprecatedServiceProviderConstruction()) {
                    if (!DescriptionUtils.isEmpty(getAnnoWebServiceEndpointInterface())) {

                        DescriptionBuilderComposite seic =
                                getServiceDescriptionImpl().getDBCMap()
                                        .get(composite.getWebServiceAnnot().endpointInterface());
                        if (!DescriptionUtils.isEmpty(seic.getWebServiceAnnot().wsdlLocation())) {
                            annotation_WsdlLocation = seic.getWebServiceAnnot().wsdlLocation();
                        }
                    }
                }
            } else if (getAnnoWebServiceProvider() != null
                    && !DescriptionUtils.isEmpty(getAnnoWebServiceProvider().wsdlLocation())) {
View Full Code Here

Examples of org.apache.axis2.jaxws.description.builder.DescriptionBuilderComposite

     */
    public HandlerChainsType getHandlerChain(Object sparseCompositeKey) {
        // If there is a HandlerChainsType in the sparse composite for this ServiceDelegate
        // (i.e. this sparseCompositeKey), then return that.
        if (sparseCompositeKey != null) {
            DescriptionBuilderComposite sparseComposite = composite.getSparseComposite(sparseCompositeKey);
            if (sparseComposite != null && sparseComposite.getHandlerChainsType() != null) {
                return sparseComposite.getHandlerChainsType();
            }
        }
       
        // If there is no HandlerChainsType in the composite, then read in the file specified
        // on the HandlerChain annotation if it is present.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.