public class BeanFactoryStepLocator extends Object implements org.springframework.batch.core.step.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 |
---|---|
org.springframework.batch.core.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(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 org.springframework.batch.core.Step getStep(String stepName)
Step
.getStep
in interface org.springframework.batch.core.step.StepLocator
StepLocator.getStep(String)
public Collection<String> getStepNames()
Step
.getStepNames
in interface org.springframework.batch.core.step.StepLocator
IllegalStateException
- if the BeanFactory
is not listableStepLocator.getStepNames()
Copyright © 2015. All rights reserved.