Package org.apache.axis2.phaseresolver

Examples of org.apache.axis2.phaseresolver.PhaseResolver


   *             if a problem occurs
   */
  void addModuleOperations(AxisModule module) throws AxisFault {
    HashMap<QName, AxisOperation> map = module.getOperations();
    Collection<AxisOperation> col = map.values();
    PhaseResolver phaseResolver = new PhaseResolver(getAxisConfiguration());
    for (Iterator<AxisOperation> iterator = col.iterator(); iterator.hasNext();) {
      AxisOperation axisOperation = copyOperation((AxisOperation) iterator
          .next());
      if (this.getOperation(axisOperation.getName()) == null) {
        ArrayList<String> wsamappings = axisOperation.getWSAMappingList();
        if (wsamappings != null) {
          for (int j = 0, size = wsamappings.size(); j < size; j++) {
            String mapping = (String) wsamappings.get(j);
            mapActionToOperation(mapping, axisOperation);
          }
        }
        // If we've set the "expose" parameter for this operation, it's
        // normal (non-
        // control) and therefore it will appear in generated WSDL. If
        // we haven't,
        // it's a control operation and will be ignored at WSDL-gen
        // time.
        if (axisOperation
            .isParameterTrue(DeploymentConstants.TAG_EXPOSE)) {
          axisOperation.setControlOperation(false);
        } else {
          axisOperation.setControlOperation(true);
        }

        phaseResolver.engageModuleToOperation(axisOperation, module);

        this.addOperation(axisOperation);
      }
    }
  }
View Full Code Here


      AxisOperation axisOperation = (AxisOperation) operations.next();
      axisOperation.disengageModule(module);
    }
    AxisConfiguration config = getAxisConfiguration();
    if (!config.isEngaged(module.getName())) {
      PhaseResolver phaseResolver = new PhaseResolver(config);
      phaseResolver.disengageModuleFromGlobalChains(module);
    }
  }
View Full Code Here

    //        }
    //    }
    public static void resolvePhases(AxisConfiguration axisconfig,
                                     ServiceDescription serviceDesc)
            throws AxisFault, PhaseException {
        PhaseResolver pr = new PhaseResolver(axisconfig, serviceDesc);
        pr.buildchains();
    }
View Full Code Here

     * @param service
     * @throws AxisFault
     */
    public synchronized void addService(ServiceDescription service) throws AxisFault {
        services.put(service.getName(), service);
        PhaseResolver handlerResolver = new PhaseResolver(this, service);
        handlerResolver.buildchains();
        service.setLastupdate();
        notifyObserves(AxisEvent.SERVICE_DEPLOY ,service);
    }
View Full Code Here

                    this + " Refer to invalid module "
                    + moduleref.getLocalPart() +
                    " has not bean deployed yet !");
        }
        if (tobeEnaged) {
            new PhaseResolver(this).engageModuleGlobally(module);
            engagedModules.add(moduleref);
        }
        if (isNewmodule) {
            addMdoule(module);
        }
View Full Code Here

                            "  operation terminated !!!");
                }

            }
        }
        new PhaseResolver().engageModuleToOperation(this, moduleref);
        Collection collectionModule = (Collection) this.getComponentProperty(
                MODULEREF_KEY);
        collectionModule.add(moduleref);
    }
View Full Code Here

                            " Operation terminated !!!");
                }

            }
        }
        new PhaseResolver(axisConfig).engageModuleToService(this, moduleref);
        Collection collectionModule = (Collection) this.getComponentProperty(
                MODULEREF_KEY);
        collectionModule.add(moduleref);
    }
View Full Code Here

     * @param module
     */
    public void addModuleOperations(ModuleDescription module ,AxisConfiguration axisConfig) {
        HashMap map = module.getOperations();
        Collection col = map.values();
        PhaseResolver pr = new PhaseResolver(axisConfig, this);
        for (Iterator iterator = col.iterator(); iterator.hasNext();) {
            OperationDescription operation = (OperationDescription) iterator.next();
            this.addOperation(operation);
        }
    }
View Full Code Here

        ConfigurationContext configurationContext = null;
        try {
            DeploymentEngine deploymentEngine =
                    new DeploymentEngine(RepositaryName);
            AxisConfiguration configuration = deploymentEngine.load();
            PhaseResolver phaseResolver = new PhaseResolver(configuration);
            configurationContext = new ConfigurationContext(configuration);
            phaseResolver.buildTranspotsChains();
            initModules(configurationContext);
            initTransports(configurationContext);
        } catch (AxisFault axisFault) {
            throw new DeploymentException(axisFault);
        }
View Full Code Here

            throws DeploymentException {
        ConfigurationContext engineContext = null;
        try {
            AxisConfiguration configuration =
                    new DeploymentEngine().loadClient(axis2home);
            PhaseResolver phaseResolver = new PhaseResolver(configuration);
            engineContext = new ConfigurationContext(configuration);
            phaseResolver.buildTranspotsChains();
            initModules(engineContext);
            initTransports(engineContext);
        } catch (AxisFault axisFault) {
            throw new DeploymentException(axisFault);
        }
View Full Code Here

TOP

Related Classes of org.apache.axis2.phaseresolver.PhaseResolver

Copyright © 2018 www.massapicom. 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.