Class JobListenerFactoryBean
java.lang.Object
org.springframework.batch.core.listener.AbstractListenerFactoryBean<JobExecutionListener>
org.springframework.batch.core.listener.JobListenerFactoryBean
- All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<Object>
,org.springframework.beans.factory.InitializingBean
This
AbstractListenerFactoryBean
implementation is used to create a
JobExecutionListener
.- Since:
- 2.0
- Author:
- Lucas Ward, Dan Garrette
- See Also:
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Class<?>
static JobExecutionListener
getListener
(Object delegate) Convenience method to wrap any object and expose the appropriateJobExecutionListener
interfaces.protected ListenerMetaData
getMetaDataFromPropertyName
(String propertyName) protected ListenerMetaData[]
Class<?>
static boolean
isListener
(Object delegate) Convenience method to check whether the given object is or can be made into aJobExecutionListener
.Methods inherited from class org.springframework.batch.core.listener.AbstractListenerFactoryBean
afterPropertiesSet, getMethodInvokerByName, getObject, isListener, isSingleton, setDelegate, setMetaDataMap
-
Constructor Details
-
JobListenerFactoryBean
public JobListenerFactoryBean()
-
-
Method Details
-
getMetaDataFromPropertyName
- Specified by:
getMetaDataFromPropertyName
in classAbstractListenerFactoryBean<JobExecutionListener>
-
getMetaDataValues
- Specified by:
getMetaDataValues
in classAbstractListenerFactoryBean<JobExecutionListener>
-
getDefaultListenerClass
- Specified by:
getDefaultListenerClass
in classAbstractListenerFactoryBean<JobExecutionListener>
-
getObjectType
-
getListener
Convenience method to wrap any object and expose the appropriateJobExecutionListener
interfaces.- Parameters:
delegate
- a delegate object- Returns:
- a JobListener instance constructed from the delegate
-
isListener
Convenience method to check whether the given object is or can be made into aJobExecutionListener
.- Parameters:
delegate
- the object to check- Returns:
- true if the delegate is an instance of
JobExecutionListener
, or contains the marker annotations
-