类 StepBuilderHelper<B extends StepBuilderHelper<B>>
- java.lang.Object
- org.springframework.batch.core.step.builder.StepBuilderHelper<B>
- 直接已知子类:
AbstractTaskletStepBuilder
,FlowStepBuilder
,JobStepBuilder
,PartitionStepBuilder
,StepBuilder
public abstract class StepBuilderHelper<B extends StepBuilderHelper<B>> extends java.lang.Object
A base class and utility for other step builders providing access to common properties like job repository and transaction manager.- 从以下版本开始:
- 2.2
- 作者:
- Dave Syer, Michael Minella
嵌套类概要
嵌套类 修饰符和类型 类 说明 static class
StepBuilderHelper.CommonStepProperties
字段概要
字段 修饰符和类型 字段 说明 protected org.apache.commons.logging.Log
logger
protected StepBuilderHelper.CommonStepProperties
properties
构造器概要
构造器 限定符 构造器 说明 StepBuilderHelper(java.lang.String name)
protected
StepBuilderHelper(StepBuilderHelper<?> parent)
Create a new builder initialized with any properties in the parent.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 B
allowStartIfComplete(boolean allowStartIfComplete)
protected void
enhance(Step target)
protected JobRepository
getJobRepository()
protected java.lang.String
getName()
protected org.springframework.transaction.PlatformTransactionManager
getTransactionManager()
protected boolean
isAllowStartIfComplete()
B
listener(java.lang.Object listener)
Registers objects using the annotation based listener configuration.B
listener(StepExecutionListener listener)
B
repository(JobRepository jobRepository)
B
startLimit(int startLimit)
B
transactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
字段详细资料
logger
protected final org.apache.commons.logging.Log logger
properties
protected final StepBuilderHelper.CommonStepProperties properties
构造器详细资料
StepBuilderHelper
public StepBuilderHelper(java.lang.String name)
StepBuilderHelper
protected StepBuilderHelper(StepBuilderHelper<?> parent)
Create a new builder initialized with any properties in the parent. The parent is copied, so it can be re-used.- 参数:
parent
- a parent helper containing common step properties
方法详细资料
repository
public B repository(JobRepository jobRepository)
transactionManager
public B transactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
startLimit
public B startLimit(int startLimit)
listener
public B listener(java.lang.Object listener)
Registers objects using the annotation based listener configuration.- 参数:
listener
- the object that has a method configured with listener annotation- 返回:
- this for fluent chaining
listener
public B listener(StepExecutionListener listener)
allowStartIfComplete
public B allowStartIfComplete(boolean allowStartIfComplete)
getName
protected java.lang.String getName()
getJobRepository
protected JobRepository getJobRepository()
getTransactionManager
protected org.springframework.transaction.PlatformTransactionManager getTransactionManager()
isAllowStartIfComplete
protected boolean isAllowStartIfComplete()