Class JobFactoryRegistrationListener
- java.lang.Object
- org.springframework.batch.core.configuration.support.JobFactoryRegistrationListener
public class JobFactoryRegistrationListener extends java.lang.Object
Generic service that can bind and unbind aJobFactory
in aJobRegistry
.- Author:
- Dave Syer
Constructor Summary
Constructors Constructor Description JobFactoryRegistrationListener()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind(JobFactory jobFactory, java.util.Map<java.lang.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, java.util.Map<java.lang.String,?> params)
Take theJobFactory
provided and unregister it with theJobRegistry
.
Method Detail
setJobRegistry
public void setJobRegistry(JobRegistry jobRegistry)
Public setter for aJobRegistry
to use for all the bind and unbind events.- Parameters:
jobRegistry
-JobRegistry
bind
public void bind(JobFactory jobFactory, java.util.Map<java.lang.String,?> params) throws java.lang.Exception
Take theJobFactory
provided and register it with theJobRegistry
.- Parameters:
jobFactory
- aJobFactory
params
- not needed by this listener.- Throws:
java.lang.Exception
- if there is a problem
unbind
public void unbind(JobFactory jobFactory, java.util.Map<java.lang.String,?> params) throws java.lang.Exception
Take theJobFactory
provided and unregister it with theJobRegistry
.- Parameters:
jobFactory
- aJobFactory
params
- not needed by this listener.- Throws:
java.lang.Exception
- if there is a problem