public abstract class AbstractStepsFactory extends Object implements InjectableStepsFactory
An abstract implementation of InjectableStepsFactory that is provided
by concrete subclasses Object instances which contain the candidate steps
methods. The Object instances are wrapped by Steps.
The object instances are also inspected for methods annotated by AsParameterConverter
and the ParameterConverters.ParameterConverter is configured accordingly.
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractStepsFactory.StepsInstanceNotFound |
| Constructor and Description |
|---|
AbstractStepsFactory(Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
List<CandidateSteps> |
createCandidateSteps() |
protected boolean |
hasAnnotatedMethods(Type type)
Determines if the given type is a
Class containing at least one method
annotated with annotations from package "org.jbehave.core.annotations". |
protected abstract List<Class<?>> |
stepsTypes() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateInstanceOfTypepublic AbstractStepsFactory(Configuration configuration)
public List<CandidateSteps> createCandidateSteps()
createCandidateSteps in interface InjectableStepsFactoryprotected boolean hasAnnotatedMethods(Type type)
Class containing at least one method
annotated with annotations from package "org.jbehave.core.annotations".type - the Type of the steps instancetrue if at least one annotated method is found.Copyright © 2003–2016. All rights reserved.