类 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
.- 作者:
- Dave Syer
构造器概要
构造器 构造器 说明 JobFactoryRegistrationListener()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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
.
构造器详细资料
JobFactoryRegistrationListener
public JobFactoryRegistrationListener()
方法详细资料
setJobRegistry
public void setJobRegistry(JobRegistry jobRegistry)
Public setter for aJobRegistry
to use for all the bind and unbind events.- 参数:
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
.- 参数:
jobFactory
- aJobFactory
params
- not needed by this listener.- 抛出:
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
.- 参数:
jobFactory
- aJobFactory
params
- not needed by this listener.- 抛出:
java.lang.Exception
- if there is a problem