Package org.milyn.container.plugin

Examples of org.milyn.container.plugin.PayloadProcessor


        try {
            resultType = ResultType.valueOf(resultTypeConfig);
        } catch(IllegalArgumentException e) {
            throw new ConfigurationException("Invalid 'resultType' config value '" + resultTypeConfig + "'.  Valid values are: " + Arrays.asList(ResultType.values()));
        }
        payloadProcessor = new PayloadProcessor( smooks, resultType );
        if(resultType == ResultType.JAVA) {
            String javaResultBeanId = configTree.getAttribute("javaResultBeanId");
            if(javaResultBeanId != null) {
                payloadProcessor.setJavaResultBeanId(javaResultBeanId);
            }
View Full Code Here


  ExecutionContext executionContext = smooks.createExecutionContext();
  // Configure the execution context to generate a report...
  if (this.getSmooksReport() != null) {
      executionContext.setEventListener(new HtmlReportGenerator(this.getSmooksReport()));
  }
  org.milyn.container.plugin.PayloadProcessor payloadProcessor = new PayloadProcessor(smooks, org.milyn.container.plugin.ResultType.JAVA);
  // smooks should return a map
  // TODO: verify with some unit tests
  return (Map<String, Object>) payloadProcessor.process(originalObjects, executionContext);
  // return result.getResultMap();

    }
View Full Code Here

TOP

Related Classes of org.milyn.container.plugin.PayloadProcessor

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.