|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.batch.core.configuration.support.ClassPathXmlJobRegistry
public class ClassPathXmlJobRegistry
Implementation of the ListableJobRegistry interface that assumes all
Jobs will be loaded from ClassPathXml resources.
| Constructor Summary | |
|---|---|
ClassPathXmlJobRegistry()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
Job |
getJob(java.lang.String name)
Locates a Job at runtime. |
java.util.Collection<java.lang.String> |
getJobNames()
Provides the currently registered job names. |
void |
register(JobFactory jobFactory)
Registers a Job at runtime. |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
|
void |
setJobPaths(org.springframework.core.io.Resource[] jobPaths)
|
void |
unregister(java.lang.String jobName)
Unregisters a previously registered Job. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassPathXmlJobRegistry()
| Method Detail |
|---|
public void setJobPaths(org.springframework.core.io.Resource[] jobPaths)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansException
public Job getJob(java.lang.String name)
throws NoSuchJobException
JobLocatorJob at runtime.
getJob in interface JobLocatorname - the name of the Job which should be
unique
Job identified by the given name
NoSuchJobException - if the required configuration can
not be found.
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exceptionpublic java.util.Collection<java.lang.String> getJobNames()
ListableJobRegistry
getJobNames in interface ListableJobRegistry
public void register(JobFactory jobFactory)
throws DuplicateJobException
JobRegistryJob at runtime.
register in interface JobRegistryjobFactory - the Job to be registered
DuplicateJobException - if a factory with the same job name has
already been registered.public void unregister(java.lang.String jobName)
JobRegistryJob. If it was not
previously registered there is no error.
unregister in interface JobRegistryjobName - the Job to unregister.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||