类 JobListenerFactoryBean
- java.lang.Object
- org.springframework.batch.core.listener.AbstractListenerFactoryBean<JobExecutionListener>
- org.springframework.batch.core.listener.JobListenerFactoryBean
- 所有已实现的接口:
org.springframework.beans.factory.FactoryBean<java.lang.Object>
,org.springframework.beans.factory.InitializingBean
- 直接已知子类:
JsrJobListenerFactoryBean
public class JobListenerFactoryBean extends AbstractListenerFactoryBean<JobExecutionListener>
ThisAbstractListenerFactoryBean
implementation is used to create aJobExecutionListener
.- 从以下版本开始:
- 2.0
- 作者:
- Lucas Ward, Dan Garrette
- 另请参阅:
AbstractListenerFactoryBean
,JobListenerMetaData
构造器概要
构造器 构造器 说明 JobListenerFactoryBean()
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 protected java.lang.Class<?>
getDefaultListenerClass()
static JobExecutionListener
getListener(java.lang.Object delegate)
Convenience method to wrap any object and expose the appropriateJobExecutionListener
interfaces.protected ListenerMetaData
getMetaDataFromPropertyName(java.lang.String propertyName)
protected ListenerMetaData[]
getMetaDataValues()
java.lang.Class<?>
getObjectType()
static boolean
isListener(java.lang.Object delegate)
Convenience method to check whether the given object is or can be made into aJobExecutionListener
.从类继承的方法 org.springframework.batch.core.listener.AbstractListenerFactoryBean
afterPropertiesSet, getMethodInvokerByName, getObject, isListener, isSingleton, setDelegate, setMetaDataMap
构造器详细资料
JobListenerFactoryBean
public JobListenerFactoryBean()
方法详细资料
getMetaDataFromPropertyName
protected ListenerMetaData getMetaDataFromPropertyName(java.lang.String propertyName)
getMetaDataValues
protected ListenerMetaData[] getMetaDataValues()
getDefaultListenerClass
protected java.lang.Class<?> getDefaultListenerClass()
getObjectType
public java.lang.Class<?> getObjectType()
getListener
public static JobExecutionListener getListener(java.lang.Object delegate)
Convenience method to wrap any object and expose the appropriateJobExecutionListener
interfaces.- 参数:
delegate
- a delegate object- 返回:
- a JobListener instance constructed from the delegate
isListener
public static boolean isListener(java.lang.Object delegate)
Convenience method to check whether the given object is or can be made into aJobExecutionListener
.- 参数:
delegate
- the object to check- 返回:
- true if the delegate is an instance of
JobExecutionListener
, or contains the marker annotations