public class JobFactoryBean
extends java.lang.Object
implements org.springframework.beans.factory.FactoryBean<org.springframework.batch.core.Job>
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger |
| Constructor and Description |
|---|
JobFactoryBean(org.springframework.batch.core.configuration.JobRegistry registry,
java.lang.String jobName,
java.lang.String jobSuffix)
|
| Modifier and Type | Method and Description |
|---|---|
org.springframework.batch.core.Job |
getObject()
Return the
Job for the corresponding #jobName. |
java.lang.Class<?> |
getObjectType() |
boolean |
isSingleton() |
public JobFactoryBean(org.springframework.batch.core.configuration.JobRegistry registry,
java.lang.String jobName,
java.lang.String jobSuffix)
registry - Must not be nulljobName - Must not be emptyjobSuffix - Must not be emptypublic org.springframework.batch.core.Job getObject()
throws java.lang.Exception
Job for the corresponding #jobName. An IllegalArgumentException will be thrown
if the Job was not found in the JobRegistry.getObject in interface org.springframework.beans.factory.FactoryBean<org.springframework.batch.core.Job>java.lang.Exceptionpublic java.lang.Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<org.springframework.batch.core.Job>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<org.springframework.batch.core.Job>