Package org.jbehave.core.steps.spring
Class SpringStepsFactory
java.lang.Object
org.jbehave.core.steps.AbstractStepsFactory
org.jbehave.core.steps.spring.SpringStepsFactory
- All Implemented Interfaces:
InjectableStepsFactory
An
InjectableStepsFactory that uses Spring's
ApplicationContext for the composition and instantiation of all
components that contain JBehave annotated methods.- Author:
- Paul Hammant, Mauro Talevi
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jbehave.core.steps.AbstractStepsFactory
AbstractStepsFactory.StepsInstanceNotFound -
Constructor Summary
ConstructorsConstructorDescriptionSpringStepsFactory(Configuration configuration, org.springframework.context.ApplicationContext context) -
Method Summary
Modifier and TypeMethodDescriptioncreateInstanceOfType(Class<?> type) protected booleanChecks if type returned from context is allowed, i.e.Methods inherited from class org.jbehave.core.steps.AbstractStepsFactory
createCandidateSteps, hasAnnotatedMethods
-
Constructor Details
-
SpringStepsFactory
public SpringStepsFactory(Configuration configuration, org.springframework.context.ApplicationContext context)
-
-
Method Details
-
stepsTypes
- Specified by:
stepsTypesin classAbstractStepsFactory
-
isAllowed
Checks if type returned from context is allowed, i.e. not null and not abstract.- Parameters:
type- the Class of the bean- Returns:
- A boolean,
trueif allowed
-
createInstanceOfType
-