Class StepListenerFactoryBean
- java.lang.Object
- org.springframework.batch.core.listener.AbstractListenerFactoryBean<StepListener>
- org.springframework.batch.core.listener.StepListenerFactoryBean
- All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<java.lang.Object>
,org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
JsrStepListenerFactoryBean
public class StepListenerFactoryBean extends AbstractListenerFactoryBean<StepListener>
ThisAbstractListenerFactoryBean
implementation is used to create aStepListener
.- Since:
- 2.0
- Author:
- Lucas Ward, Dan Garrette
- See Also:
AbstractListenerFactoryBean
,StepListenerMetaData
Constructor Summary
Constructors Constructor Description StepListenerFactoryBean()
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Class<?>
getDefaultListenerClass()
static StepListener
getListener(java.lang.Object delegate)
Convenience method to wrap any object and expose the appropriateStepListener
interfaces.protected ListenerMetaData
getMetaDataFromPropertyName(java.lang.String propertyName)
protected ListenerMetaData[]
getMetaDataValues()
java.lang.Class<StepListener>
getObjectType()
static boolean
isListener(java.lang.Object delegate)
Convenience method to check whether the given object is or can be made into aStepListener
.Methods inherited from class org.springframework.batch.core.listener.AbstractListenerFactoryBean
afterPropertiesSet, getMethodInvokerByName, getObject, isListener, isSingleton, setDelegate, setMetaDataMap
Method Detail
getMetaDataFromPropertyName
protected ListenerMetaData getMetaDataFromPropertyName(java.lang.String propertyName)
- Specified by:
getMetaDataFromPropertyName
in classAbstractListenerFactoryBean<StepListener>
getMetaDataValues
protected ListenerMetaData[] getMetaDataValues()
- Specified by:
getMetaDataValues
in classAbstractListenerFactoryBean<StepListener>
getDefaultListenerClass
protected java.lang.Class<?> getDefaultListenerClass()
- Specified by:
getDefaultListenerClass
in classAbstractListenerFactoryBean<StepListener>
getObjectType
public java.lang.Class<StepListener> getObjectType()
getListener
public static StepListener getListener(java.lang.Object delegate)
Convenience method to wrap any object and expose the appropriateStepListener
interfaces.- Parameters:
delegate
- a delegate object- Returns:
- a StepListener 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 aStepListener
.- Parameters:
delegate
- the object to check- Returns:
- true if the delegate is an instance of any of the
StepListener
interfaces, or contains the marker annotations