public class BeanFactoryStepLocator extends Object implements StepLocator, 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(String stepName)
Look up a bean with the provided name of type
Step. |
Collection<String> |
getStepNames()
Look in the bean factory for all beans of type
Step. |
void |
setBeanFactory(BeanFactory beanFactory) |
public void setBeanFactory(BeanFactory beanFactory) throws BeansException
setBeanFactory in interface BeanFactoryAwareBeansExceptionpublic Step getStep(String stepName)
Step.getStep in interface StepLocatorStepLocator.getStep(String)public Collection<String> getStepNames()
Step.getStepNames in interface StepLocatorIllegalStateException - if the BeanFactory is not listableStepLocator.getStepNames()