org.springframework.batch.core.jsr

## 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 create `StepContext` instances within the step scope.
  Since:
    3.0
  Author:
    Michael Minella, Chris Schaefer

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `JsrStepContextFactoryBean()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `afterPropertiesSet()`
    `javax.batch.runtime.context.StepContext` | `getObject()`
    `java.lang.Class<?>` | `getObjectType()`
    `boolean` | `isSingleton()`
    `void` | `remove()`
    `protected void` | `setBatchPropertyContext(BatchPropertyContext batchPropertyContext)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### JsrStepContextFactoryBean

          public JsrStepContextFactoryBean()

  - ### Method Detail

    - #### setBatchPropertyContext

          protected void setBatchPropertyContext(BatchPropertyContext batchPropertyContext)

    - #### getObject

          public javax.batch.runtime.context.StepContext getObject()
                                                            throws java.lang.Exception

      Specified by:
        `getObject` in interface `org.springframework.beans.factory.FactoryBean<javax.batch.runtime.context.StepContext>`
      Throws:
        `java.lang.Exception`

    - #### getObjectType

          public java.lang.Class<?> getObjectType()

      Specified by:
        `getObjectType` in interface `org.springframework.beans.factory.FactoryBean<javax.batch.runtime.context.StepContext>`

    - #### isSingleton

          public boolean isSingleton()

      Specified by:
        `isSingleton` in interface `org.springframework.beans.factory.FactoryBean<javax.batch.runtime.context.StepContext>`

    - #### afterPropertiesSet

          public void afterPropertiesSet()
                                  throws java.lang.Exception

      Specified by:
        `afterPropertiesSet` in interface `org.springframework.beans.factory.InitializingBean`
      Throws:
        `java.lang.Exception`

    - #### remove

          public void remove()