Class ReferenceJobFactory
java.lang.Object
org.springframework.batch.core.configuration.support.ReferenceJobFactory
- All Implemented Interfaces:
JobFactory
- Author:
- Dave Syer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal JobReturn the instance that was passed in on initialization.Return the name of the instance that was passed in on initialization.
-
Constructor Details
-
ReferenceJobFactory
- Parameters:
job- theJobto return fromcreateJob().
-
-
Method Details
-
createJob
Return the instance that was passed in on initialization.- Specified by:
createJobin interfaceJobFactory- Returns:
- The
Job. - See Also:
-
getJobName
Return the name of the instance that was passed in on initialization.- Specified by:
getJobNamein interfaceJobFactory- Returns:
- The
Stringthat contains theJobname. - See Also:
-