public class ApplicationContextJobFactory extends java.lang.Object implements JobFactory
JobFactory that creates its own ApplicationContext and
pulls a bean out when asked to create a Job.| Constructor and Description |
|---|
ApplicationContextJobFactory(java.lang.String jobName,
ApplicationContextFactory applicationContextFactory) |
| Modifier and Type | Method and Description |
|---|---|
Job |
createJob()
Create an
ApplicationContext 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.
|
public ApplicationContextJobFactory(java.lang.String jobName,
ApplicationContextFactory applicationContextFactory)
jobName - the id of the Job in the application context to be
createdapplicationContextFactory - a factory for an application context
containing a job with the job name providedpublic final Job createJob()
ApplicationContext from the factory provided and pull
out a bean with the name given during initialization.createJob in interface JobFactoryJobFactory.createJob()public java.lang.String getJobName()
getJobName in interface JobFactoryJobFactory.getJobName()