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 |
|---|---|
java.lang.Object |
createInstanceOfType(java.lang.Class<?> type) |
protected boolean |
isAllowed(java.lang.Class<?> type)
Checks if type returned from context is allowed, i.e.
|
protected java.util.List<java.lang.Class<?>> |
stepsTypes() |
createCandidateSteps, hasAnnotatedMethodspublic SpringStepsFactory(Configuration configuration, org.springframework.context.ApplicationContext context)
protected java.util.List<java.lang.Class<?>> stepsTypes()
stepsTypes in class AbstractStepsFactoryprotected boolean isAllowed(java.lang.Class<?> type)
type - the Class of the beantrue if allowedpublic java.lang.Object createInstanceOfType(java.lang.Class<?> type)
Copyright © 2003-2013. All Rights Reserved.