类 ApplicationContextJobFactory
- java.lang.Object
- org.springframework.batch.core.configuration.support.ApplicationContextJobFactory
- 所有已实现的接口:
JobFactory
public class ApplicationContextJobFactory extends java.lang.Object implements JobFactory
AJobFactory
that creates its ownApplicationContext
and pulls a bean out when asked to create aJob
.- 作者:
- Dave Syer
构造器概要
构造器 构造器 说明 ApplicationContextJobFactory(java.lang.String jobName, ApplicationContextFactory applicationContextFactory)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Job
createJob()
Create anApplicationContext
from the factory provided and pull out a bean with the name given during initialization.java.lang.String
getJobName()
Just return the name of instance passed in on initialization.
构造器详细资料
ApplicationContextJobFactory
public ApplicationContextJobFactory(java.lang.String jobName, ApplicationContextFactory applicationContextFactory)
- 参数:
jobName
- the id of theJob
in the application context to be createdapplicationContextFactory
- a factory for an application context containing a job with the job name provided
方法详细资料
createJob
public final Job createJob()
Create anApplicationContext
from the factory provided and pull out a bean with the name given during initialization.- 指定者:
createJob
在接口中JobFactory
- 另请参阅:
JobFactory.createJob()
getJobName
public java.lang.String getJobName()
Just return the name of instance passed in on initialization.- 指定者:
getJobName
在接口中JobFactory
- 另请参阅:
JobFactory.getJobName()