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.BeanFactoryAware
org.springframework.beans.BeansException
public Step getStep(java.lang.String stepName)
Step
.getStep
in interface StepLocator
StepLocator.getStep(String)
public java.util.Collection<java.lang.String> getStepNames()
Step
.getStepNames
in interface StepLocator
java.lang.IllegalStateException
- if the BeanFactory
is not listableStepLocator.getStepNames()