Examples of ParameterContextImpl


Examples of org.apache.airavata.core.gfac.context.message.impl.ParameterContextImpl

      ct.setServiceName("SimpleEcho");

      /*
       * Input
       */
      ParameterContextImpl input = new ParameterContextImpl();
      ActualParameter echo_input = new ActualParameter();
      ((StringParameterType)echo_input.getType()).setValue("echo_output=hello");
      input.add("echo_input", echo_input);

      /*
       * Output
       */
      ParameterContextImpl output = new ParameterContextImpl();
      ActualParameter echo_output = new ActualParameter();
      output.add("echo_output", echo_output);

      // parameter
      ct.setInput(input);
      ct.setOutput(output);
            ct.getExecutionContext().setRegistryService(jcrRegistry);
View Full Code Here

Examples of org.ocpsoft.rewrite.annotation.context.ParameterContextImpl

               // then the method parameters
               for (int i = 0; i < method.getParameterTypes().length; i++)
               {
                  ParameterImpl parameter = new ParameterImpl(method, method.getParameterTypes()[i],
                           method.getParameterAnnotations()[i], i);
                  visit(parameter, new ParameterContextImpl(methodContext, parameter));
               }
            }

            currentType = currentType.getSuperclass();
View Full Code Here

Examples of org.ogce.gfac.context.impl.ParameterContextImpl

      ct.addSecurityContext("myproxy", gsiSecurityContext);     
     
      ct.setServiceName("{http://www.extreme.indiana.edu/namespaces/2004/01/gFac}Echo_Service");
     
      //parameter
      ParameterContextImpl x = new ParameterContextImpl();
      StringParameter parameter = new StringParameter();
      parameter.fromString("Hello");
      x.addParameter("echo", parameter.getTypeName(), parameter);
      ct.addMessageContext("input", x);
     
      PropertiesBasedServiceImpl service = new PropertiesBasedServiceImpl();
      service.init();
      service.execute(ct);
View Full Code Here

Examples of org.ogce.gfac.context.impl.ParameterContextImpl

        OMElement element = (OMElement) iterator.next();
        String name = element.getQName().getLocalPart();
        String type = element.getAttribute(new QName("type")).getAttributeValue();
        String value = element.getText();
       
        ParameterContextImpl x = new ParameterContextImpl();
        x.addParameter(name, type, value)
        ct.addMessageContext("input", x)
      }

      if (service == null) {
        service = new PropertyServiceFactory().createService();
View Full Code Here

Examples of org.ogce.gfac.context.impl.ParameterContextImpl

        context.getExecutionContext().setExectionModel(model);

        // output parameter
        //TODO type mapping
        if (serviceMap.getPortTypeArray(0).getMethodArray(0).getOutputParameterArray() != null) {
          ParameterContextImpl outtmp = new ParameterContextImpl();
          for (OutputParameterType output : serviceMap.getPortTypeArray(0).getMethodArray(0).getOutputParameterArray()) {
            outtmp.addParameter(output.getParameterName(), output.getParameterType().toString(), new StringParameter());
          }
          context.addMessageContext(OUTPUT_MESSAGE_CONTEXT, outtmp);
        }

      } catch (XmlException e) {
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.