Examples of process()


Examples of org.marian.processors.MessageProcessor.process()

     * @param m Message to be processed
     */
    private void process(MessageXML m) throws MessageTypeException, Exception
    {
        MessageProcessor mp = this.co.getMessagesTypesXML().getProcessor(m.getType());
        mp.process(m, co);

        // Save the changes
        this.save();
     }
   
View Full Code Here

Examples of org.markdown4j.Markdown4jProcessor.process()

        Markdown4jProcessor processor = new Markdown4jProcessor();
        final String userManualsLocation = env.get("userManuals.location");
        String documentLocation = context.getRealPath("/doc/") + "/" + documentName + ".md";
        if (userManualsLocation!=null)
            documentLocation = userManualsLocation + documentName + ".md";
        String manual = processor.process(new File(documentLocation));
        manual = manual.replaceAll("\\$\\{homeBaseUrl\\}", env.get("homeBaseUrl"));
        mav.addObject("manual", manual);
        mav.addObject("release", release);
        return mav;
    }
View Full Code Here

Examples of org.meshcms.util.DirectoryRemover.process()

      sc.log("Can't close file " + bakFile, ex);
      return false;
    }

    DirectoryRemover dr = new DirectoryRemover(dir);
    dr.process();
    return dr.getResult();
  }

  public File createDir(Path path) {
    File dir = getFile(path);
View Full Code Here

Examples of org.mifosplatform.infrastructure.hooks.processor.HookProcessor.process()

                    hookEventSource.getActionName());

    for (final Hook hook : hooks) {
      final HookProcessor processor = this.hookProcessorProvider
          .getProcessor(hook);
      processor.process(hook, appUser, payload, entityName, actionName,
          tenantIdentifier, authToken);
    }
  }

}
View Full Code Here

Examples of org.milyn.container.plugin.PayloadProcessor.process()

      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();

    }

    public String getSmooksResource() {
View Full Code Here

Examples of org.milyn.edisax.interchange.ControlBlockHandler.process()

                    namespaceDeclarationStack.pushNamespaces(envElementQName, handlerFactory.getNamespace(), attrs);

                    ControlBlockHandler handler = handlerFactory.getControlBlockHandler(segCode);

          interchangeContext.indentDepth.value++;
              handler.process(interchangeContext);
          interchangeContext.indentDepth.value--;
            } else {
              break;
            }
          }
View Full Code Here

Examples of org.mockito.configuration.AnnotationEngine.process()

                clazz = clazz.getSuperclass();
            }
        }

        //anyway act 'the new' way
        annotationEngine.process(testClass.getClass(), testClass);
    }

    static void scanDeprecatedWay(AnnotationEngine annotationEngine, Object testClass, Class<?> clazz) {
        Field[] fields = clazz.getDeclaredFields();
View Full Code Here

Examples of org.mokai.Processor.process()

        }

        // try to process the message
        long startTime = System.currentTimeMillis();
        Processor processor = (Processor) connector;
        processor.process(message);
        message.setStatus(Message.STATUS_PROCESSED);
        long endTime = System.currentTimeMillis();
        log.debug("[processor=" + id + "] processing message took " + (endTime - startTime) + " millis");

        status = Monitorable.class.isInstance(processor) ? MonitorStatusBuilder.ok() : MonitorStatusBuilder.unknown();
View Full Code Here

Examples of org.mokai.connector.FakeProcessor.process()

  @Test
  public void shouldLogMessage() throws Exception {
    FakeProcessor processor = new FakeProcessor();

    Message message = new Message();
    processor.process(message);
  }
}
View Full Code Here

Examples of org.mokai.connector.RoundRobinProcessor.process()

    RoundRobinProcessor processor = new RoundRobinProcessor()
      .addProcessor(p1)
      .addProcessor(p2);

    processor.process(new Message());
    verify(p1).process(any(Message.class));
    verify(p2, never()).process(any(Message.class));

    processor.process(new Message());
    verify(p1).process(any(Message.class));
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.