Class JobFactoryRegistrationListener
java.lang.Object
org.springframework.batch.core.configuration.support.JobFactoryRegistrationListener
Generic service that can bind and unbind a
JobFactory in a JobRegistry.- Author:
- Dave Syer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbind(JobFactory jobFactory, Map<String, ?> params) Take theJobFactoryprovided and register it with theJobRegistry.voidsetJobRegistry(JobRegistry jobRegistry) Public setter for aJobRegistryto use for all the bind and unbind events.voidunbind(JobFactory jobFactory, Map<String, ?> params) Take the providedJobFactoryand unregister it with theJobRegistry.
-
Constructor Details
-
JobFactoryRegistrationListener
public JobFactoryRegistrationListener()
-
-
Method Details
-
setJobRegistry
Public setter for aJobRegistryto use for all the bind and unbind events.- Parameters:
jobRegistry-JobRegistry
-
bind
Take theJobFactoryprovided and register it with theJobRegistry.- Parameters:
jobFactory- aJobFactoryparams- not needed by this listener.- Throws:
Exception- if there is a problem
-
unbind
Take the providedJobFactoryand unregister it with theJobRegistry.- Parameters:
jobFactory- aJobFactoryparams- not needed by this listener.- Throws:
Exception- if there is a problem
-