Class ApplicationContextJobFactory

java.lang.Object
org.springframework.batch.core.configuration.support.ApplicationContextJobFactory
All Implemented Interfaces:
JobFactory

public class ApplicationContextJobFactory extends Object implements JobFactory
A JobFactory that creates its own ApplicationContext and pulls a bean out when asked to create a Job.
Author:
Dave Syer, Mahmoud Ben Hassine
  • Constructor Details

    • ApplicationContextJobFactory

      public ApplicationContextJobFactory(String jobName, ApplicationContextFactory applicationContextFactory)
      Parameters:
      jobName - the ID of the Job in the application context to be created.
      applicationContextFactory - a factory for an application context that contains a job with the job name provided.
  • Method Details