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<Object>,org.springframework.beans.factory.InitializingBean
This
AbstractListenerFactoryBean implementation is used to create a
StepListener.- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Class<?>static StepListenergetListener(Object delegate) Convenience method to wrap any object and expose the appropriateStepListenerinterfaces.protected ListenerMetaDatagetMetaDataFromPropertyName(String propertyName) protected ListenerMetaData[]static booleanisListener(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
-
Constructor Details
-
StepListenerFactoryBean
public StepListenerFactoryBean()
-
-
Method Details
-
getMetaDataFromPropertyName
- Specified by:
getMetaDataFromPropertyNamein classAbstractListenerFactoryBean<StepListener>
-
getMetaDataValues
- Specified by:
getMetaDataValuesin classAbstractListenerFactoryBean<StepListener>
-
getDefaultListenerClass
- Specified by:
getDefaultListenerClassin classAbstractListenerFactoryBean<StepListener>
-
getObjectType
-
getListener
Convenience method to wrap any object and expose the appropriateStepListenerinterfaces.- Parameters:
delegate- a delegate object- Returns:
- a StepListener instance constructed from the delegate
-
isListener
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
StepListenerinterfaces, or contains the marker annotations
-