public class BeanFactoryStepLocator extends java.lang.Object implements StepLocator, org.springframework.beans.factory.BeanFactoryAware
StepLocator implementation that just looks in its enclosing bean
factory for components of type Step.| Constructor and Description |
|---|
BeanFactoryStepLocator() |
| Modifier and Type | Method and Description |
|---|---|
Step |
getStep(java.lang.String stepName)
Look up a bean with the provided name of type
Step. |
java.util.Collection<java.lang.String> |
getStepNames()
Look in the bean factory for all beans of type
Step. |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
throws org.springframework.beans.BeansException
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwareorg.springframework.beans.BeansExceptionpublic Step getStep(java.lang.String stepName)
Step.getStep in interface StepLocatorStepLocator.getStep(String)public java.util.Collection<java.lang.String> getStepNames()
Step.getStepNames in interface StepLocatorjava.lang.IllegalStateException - if the BeanFactory is not listableStepLocator.getStepNames()