Class StepBuilderHelper<B extends StepBuilderHelper<B>>
java.lang.Object
org.springframework.batch.core.step.builder.StepBuilderHelper<B>
- Direct Known Subclasses:
AbstractTaskletStepBuilder
,FlowStepBuilder
,JobStepBuilder
,PartitionStepBuilder
,StepBuilder
A base class and utility for other step builders providing access to common properties
like job repository and transaction manager.
- Since:
- 2.2
- Author:
- Dave Syer, Michael Minella
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected final org.apache.commons.logging.Log
protected final StepBuilderHelper.CommonStepProperties
-
Constructor Summary
ModifierConstructorDescriptionStepBuilderHelper
(String name) protected
StepBuilderHelper
(StepBuilderHelper<?> parent) Create a new builder initialized with any properties in the parent. -
Method Summary
Modifier and TypeMethodDescriptionallowStartIfComplete
(boolean allowStartIfComplete) protected void
protected JobRepository
protected String
getName()
protected org.springframework.transaction.PlatformTransactionManager
protected boolean
Registers objects using the annotation based listener configuration.listener
(StepExecutionListener listener) repository
(JobRepository jobRepository) protected abstract B
self()
startLimit
(int startLimit) transactionManager
(org.springframework.transaction.PlatformTransactionManager transactionManager)
-
Field Details
-
logger
protected final org.apache.commons.logging.Log logger -
properties
-
-
Constructor Details
-
StepBuilderHelper
-
StepBuilderHelper
Create a new builder initialized with any properties in the parent. The parent is copied, so it can be re-used.- Parameters:
parent
- a parent helper containing common step properties
-
-
Method Details
-
repository
-
transactionManager
public B transactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager) -
startLimit
-
listener
Registers objects using the annotation based listener configuration.- Parameters:
listener
- the object that has a method configured with listener annotation- Returns:
- this for fluent chaining
-
listener
-
allowStartIfComplete
-
self
-
getName
-
getJobRepository
-
getTransactionManager
protected org.springframework.transaction.PlatformTransactionManager getTransactionManager() -
isAllowStartIfComplete
protected boolean isAllowStartIfComplete() -
enhance
-