|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.batch.core.configuration.support.MapJobRegistry
public class MapJobRegistry
Simple map-based implementation of JobRegistry. Access to the map is
synchronized, guarded by an internal lock.
| Constructor Summary | |
|---|---|
MapJobRegistry()
|
|
| Method Summary | |
|---|---|
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 |
unregister(java.lang.String name)
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 MapJobRegistry()
| Method Detail |
|---|
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 name)
JobRegistryJob. If it was not
previously registered there is no error.
unregister in interface JobRegistryname - the Job to unregister.
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 java.util.Collection<java.lang.String> getJobNames()
ListableJobRegistry
getJobNames in interface ListableJobRegistry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||