public class SpringStepsFactory extends AbstractStepsFactory
InjectableStepsFactory that uses Spring's
ApplicationContext for the composition and instantiation of all
components that contain JBehave annotated methods.AbstractStepsFactory.StepsInstanceNotFound| Constructor and Description |
|---|
SpringStepsFactory(Configuration configuration,
org.springframework.context.ApplicationContext context) |
| Modifier and Type | Method and Description |
|---|---|
Object |
createInstanceOfType(Class<?> type) |
protected boolean |
isAllowed(Class<?> type)
Checks if type returned from context is allowed, i.e.
|
protected List<Class<?>> |
stepsTypes() |
createCandidateSteps, hasAnnotatedMethodspublic SpringStepsFactory(Configuration configuration, org.springframework.context.ApplicationContext context)
protected List<Class<?>> stepsTypes()
stepsTypes in class AbstractStepsFactoryprotected boolean isAllowed(Class<?> type)
type - the Class of the beantrue if allowedCopyright © 2003-2013. All Rights Reserved.