Package org.springframework.batch.core.jsr.configuration.support

Examples of org.springframework.batch.core.jsr.configuration.support.BatchPropertyContext


    processor = new FailingCountingItemProcessor();
    writer = new StoringItemWriter();
    readListener = new CountingListener();

    builder = new JsrSimpleStepBuilder<String, String>(new StepBuilder("step1"));
    builder.setBatchPropertyContext(new BatchPropertyContext());
    repository = new MapJobRepositoryFactoryBean().getObject();
    builder.repository(repository);
    builder.transactionManager(new ResourcelessTransactionManager());
    stepExecution = null;
  }
View Full Code Here


  private BatchPropertyContext propertyContext;

  @Before
  public void setUp() throws Exception {
    StepSynchronizationManager.close();
    propertyContext = new BatchPropertyContext();
    factoryBean = new JsrJobContextFactoryBean();
  }
View Full Code Here

    SimpleFlow flow = new SimpleFlow("job");
    List<StateTransition> transitions = new ArrayList<StateTransition>();
    PartitionStep step = new PartitionStep();
    step.setName("step1");
    JsrPartitionHandler partitionHandler = new JsrPartitionHandler();
    partitionHandler.setPropertyContext(new BatchPropertyContext());
    partitionHandler.setPartitions(3);
    partitionHandler.setJobRepository(jobRepository);
    partitionHandler.setStep(new StubStep("subStep"));
    partitionHandler.afterPropertiesSet();
    step.setPartitionHandler(partitionHandler);
View Full Code Here

    processor = new FailingCountingItemProcessor();
    writer = new StoringItemWriter();
    listener = new CountingListener();

    builder = new JsrFaultTolerantStepBuilder<String, String>(new StepBuilder("step1"));
    builder.setBatchPropertyContext(new BatchPropertyContext());
    repository = new MapJobRepositoryFactoryBean().getObject();
    builder.repository(repository);
    builder.transactionManager(new ResourcelessTransactionManager());
    stepExecution = null;
  }
View Full Code Here

        count++;
        stepExecution.setStatus(org.springframework.batch.core.BatchStatus.COMPLETED);
        stepExecution.setExitStatus(new ExitStatus("done"));
      }
    });
    propertyContext = new BatchPropertyContext();
    handler.setPropertyContext(propertyContext);
    repository = new MapJobRepositoryFactoryBean().getObject();
    handler.setJobRepository(repository);
    MyPartitionReducer.reset();
    CountingPartitionCollector.reset();
View Full Code Here

      fail("PropertyContext was not checked for");
    } catch(IllegalArgumentException iae) {
      assertEquals("A BatchPropertyContext is required", iae.getMessage());
    }

    handler.setPropertyContext(new BatchPropertyContext());

    try {
      handler.afterPropertiesSet();
      fail("Threads or mapper was not checked for");
    } catch(IllegalArgumentException iae) {
View Full Code Here

TOP

Related Classes of org.springframework.batch.core.jsr.configuration.support.BatchPropertyContext

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.