|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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(String name)
Locates a Job at runtime. |
Collection<String> |
getJobNames()
Provides the currently registered job names. |
void |
register(JobFactory jobFactory)
Registers a Job at runtime. |
void |
setApplicationContext(ApplicationContext applicationContext)
|
void |
setJobPaths(Resource[] jobPaths)
|
void |
unregister(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(Resource[] jobPaths)
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
setApplicationContext
in interface ApplicationContextAware
BeansException
public Job getJob(String name) throws NoSuchJobException
JobLocator
Job
at runtime.
getJob
in interface JobLocator
name
- 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 Exception
afterPropertiesSet
in interface InitializingBean
Exception
public Collection<String> getJobNames()
ListableJobRegistry
getJobNames
in interface ListableJobRegistry
public void register(JobFactory jobFactory) throws DuplicateJobException
JobRegistry
Job
at runtime.
register
in interface JobRegistry
jobFactory
- the Job
to be registered
DuplicateJobException
- if a factory with the same job name has
already been registered.public void unregister(String jobName)
JobRegistry
Job
. If it was not
previously registered there is no error.
unregister
in interface JobRegistry
jobName
- the Job
to unregister.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |