Class JsrStepContextFactoryBean
- java.lang.Object
- org.springframework.batch.core.jsr.JsrStepContextFactoryBean
- All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<javax.batch.runtime.context.StepContext>
,org.springframework.beans.factory.InitializingBean
public class JsrStepContextFactoryBean extends java.lang.Object implements org.springframework.beans.factory.FactoryBean<javax.batch.runtime.context.StepContext>, org.springframework.beans.factory.InitializingBean
FactoryBean
implementation used to createStepContext
instances within the step scope.- Since:
- 3.0
- Author:
- Michael Minella, Chris Schaefer
Constructor Summary
Constructors Constructor Description JsrStepContextFactoryBean()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
javax.batch.runtime.context.StepContext
getObject()
java.lang.Class<?>
getObjectType()
boolean
isSingleton()
void
remove()
protected void
setBatchPropertyContext(BatchPropertyContext batchPropertyContext)
Method Detail
setBatchPropertyContext
protected void setBatchPropertyContext(BatchPropertyContext batchPropertyContext)
getObject
public javax.batch.runtime.context.StepContext getObject() throws java.lang.Exception
- Specified by:
getObject
in interfaceorg.springframework.beans.factory.FactoryBean<javax.batch.runtime.context.StepContext>
- Throws:
java.lang.Exception
getObjectType
public java.lang.Class<?> getObjectType()
- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean<javax.batch.runtime.context.StepContext>
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interfaceorg.springframework.beans.factory.FactoryBean<javax.batch.runtime.context.StepContext>
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
java.lang.Exception
remove
public void remove()