Examples of HippyMethodInvoker


Examples of org.springframework.batch.item.adapter.HippyMethodInvoker

    Object target = testContext.getTestInstance();

    ExtractorMethodCallback method = new ExtractorMethodCallback(JobExecution.class, "getJobExecution");
    ReflectionUtils.doWithMethods(target.getClass(), method);
    if (method.getName() != null) {
      HippyMethodInvoker invoker = new HippyMethodInvoker();
      invoker.setTargetObject(target);
      invoker.setTargetMethod(method.getName());
      try {
        invoker.prepare();
        return (JobExecution) invoker.invoke();
      }
      catch (Exception e) {
        throw new IllegalArgumentException("Could not create job execution from method: " + method.getName(),
            e);
      }
View Full Code Here

Examples of org.springframework.batch.item.adapter.HippyMethodInvoker

    }

    ExtractorMethodCallback method = new ExtractorMethodCallback(StepExecution.class, "getStepExecution");
    ReflectionUtils.doWithMethods(target.getClass(), method);
    if (method.getName() != null) {
      HippyMethodInvoker invoker = new HippyMethodInvoker();
      invoker.setTargetObject(target);
      invoker.setTargetMethod(method.getName());
      try {
        invoker.prepare();
        return (StepExecution) invoker.invoke();
      }
      catch (Exception e) {
        throw new IllegalArgumentException("Could not create step execution from method: " + method.getName(),
            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.