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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
bind
(JobFactory jobFactory, Map<String, ?> params) Take theJobFactory
provided and register it with theJobRegistry
.void
setJobRegistry
(JobRegistry jobRegistry) Public setter for aJobRegistry
to use for all the bind and unbind events.void
unbind
(JobFactory jobFactory, Map<String, ?> params) Take the providedJobFactory
and unregister it with theJobRegistry
.
-
Constructor Details
-
JobFactoryRegistrationListener
public JobFactoryRegistrationListener()
-
-
Method Details
-
setJobRegistry
Public setter for aJobRegistry
to use for all the bind and unbind events.- Parameters:
jobRegistry
-JobRegistry
-
bind
Take theJobFactory
provided and register it with theJobRegistry
.- Parameters:
jobFactory
- aJobFactory
params
- not needed by this listener.- Throws:
Exception
- if there is a problem
-
unbind
Take the providedJobFactory
and unregister it with theJobRegistry
.- Parameters:
jobFactory
- aJobFactory
params
- not needed by this listener.- Throws:
Exception
- if there is a problem
-