Examples of afterPropertiesSet()


Examples of org.springframework.batch.core.job.flow.FlowJob.afterPropertiesSet()

    if (flow != null) {
      flowJob.setFlow(flow);
    }

    flowJob.afterPropertiesSet();
    return flowJob;
  }

  public void setRestartable(Boolean restartable) {
    this.restartable = restartable;
View Full Code Here

Examples of org.springframework.batch.core.job.flow.FlowStep.afterPropertiesSet()

    FlowStep step = new FlowStep();
    step.setName(getName());
    step.setFlow(flow);
    super.enhance(step);
    try {
      step.afterPropertiesSet();
    }
    catch (Exception e) {
      throw new StepBuilderException(e);
    }
    return step;
View Full Code Here

Examples of org.springframework.batch.core.job.flow.support.SimpleFlow.afterPropertiesSet()

      updatedTransitions.add(StateTransition.switchOriginAndDestination(stateTransition, state,
          getNext(stateTransition.getNext())));
    }

    flow.setStateTransitions(updatedTransitions);
    flow.afterPropertiesSet();
    return flow;

  }

  private String getNext(String next) {
View Full Code Here

Examples of org.springframework.batch.core.jsr.job.flow.JsrFlowJob.afterPropertiesSet()

    if (flow != null) {
      flowJob.setFlow(flow);
    }

    flowJob.afterPropertiesSet();
    return flowJob;
  }

  public void setJobExplorer(JobExplorer jobExplorer) {
    this.jobExplorer = jobExplorer;
View Full Code Here

Examples of org.springframework.batch.core.jsr.job.flow.support.JsrFlow.afterPropertiesSet()

    List<StateTransition> transitions = new ArrayList<StateTransition>();
    transitions.add(StateTransition.createStateTransition(new StepState(new StubStep("step1")), "step2"));
    transitions.add(StateTransition.createStateTransition(new StepState(new StubStep("step2")), "end0"));
    transitions.add(StateTransition.createEndStateTransition(new EndState(FlowExecutionStatus.COMPLETED, "end0")));
    flow.setStateTransitions(transitions);
    flow.afterPropertiesSet();
    job.setFlow(flow);
    job.afterPropertiesSet();
    assertEquals(2, job.getStepNames().size());
  }
View Full Code Here

Examples of org.springframework.batch.core.jsr.partition.JsrPartitionHandler.afterPropertiesSet()

    JsrPartitionHandler partitionHandler = new JsrPartitionHandler();
    partitionHandler.setPropertyContext(new BatchPropertyContext());
    partitionHandler.setPartitions(3);
    partitionHandler.setJobRepository(jobRepository);
    partitionHandler.setStep(new StubStep("subStep"));
    partitionHandler.afterPropertiesSet();
    step.setPartitionHandler(partitionHandler);
    step.setStepExecutionSplitter(new JsrStepExecutionSplitter(jobRepository, false, "step1", true));
    step.setJobRepository(jobRepository);
    step.afterPropertiesSet();
    transitions.add(StateTransition.createStateTransition(new StepState("job.step", step), "end0"));
View Full Code Here

Examples of org.springframework.batch.core.jsr.step.BatchletStep.afterPropertiesSet()

    ItemStream[] streams = getStreams().toArray(new ItemStream[0]);
    step.setStreams(streams);

    try {
      step.afterPropertiesSet();
    }
    catch (Exception e) {
      throw new StepBuilderException(e);
    }
View Full Code Here

Examples of org.springframework.batch.core.jsr.step.PartitionStep.afterPropertiesSet()

    if(reducer != null) {
      step.setPartitionReducer(reducer);
    }

    try {
      step.afterPropertiesSet();
    }
    catch (Exception e) {
      throw new StepBuilderException(e);
    }
View Full Code Here

Examples of org.springframework.batch.core.launch.support.SimpleJobLauncher.afterPropertiesSet()

    @Test
    public void testRunJob() throws Exception {
        SimpleJobLauncher launcher = new SimpleJobLauncher();
        launcher.setJobRepository(new TestDummyJobRepository());
        launcher.afterPropertiesSet();

        Job job = new TestDummyJob("testRunJob");
        JobExecution execution = launcher.run(job, new JobParameters());
        assertNotNull("No job exectuion instance", execution);
View Full Code Here

Examples of org.springframework.batch.core.partition.support.PartitionStep.afterPropertiesSet()

    if (aggregator != null) {
      step.setStepExecutionAggregator(aggregator);
    }

    try {
      step.afterPropertiesSet();
    }
    catch (Exception e) {
      throw new StepBuilderException(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.