Package org.jbehave.core.steps
Class AbstractStepsFactory
- java.lang.Object
-
- org.jbehave.core.steps.AbstractStepsFactory
-
- All Implemented Interfaces:
InjectableStepsFactory
- Direct Known Subclasses:
InstanceStepsFactory,ScanningStepsFactory
public abstract class AbstractStepsFactory extends Object implements InjectableStepsFactory
An abstract implementation of
InjectableStepsFactorythat is provided by concrete subclasses Object instances which contain the candidate steps methods. The Object instances are wrapped bySteps.The object instances are also inspected for methods annotated by
AsParameterConverterand theParameterConverters.ParameterConverteris configured accordingly.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractStepsFactory.StepsInstanceNotFound
-
Constructor Summary
Constructors Constructor Description AbstractStepsFactory(Configuration configuration)
-
Method Summary
Modifier and Type Method Description List<CandidateSteps>createCandidateSteps()protected booleanhasAnnotatedMethods(Type type)Determines if the given type is aClasscontaining at least one method annotated with annotations from package "org.jbehave.core.annotations".protected abstract List<Class<?>>stepsTypes()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jbehave.core.steps.InjectableStepsFactory
createInstanceOfType
-
-
-
-
Constructor Detail
-
AbstractStepsFactory
public AbstractStepsFactory(Configuration configuration)
-
-
Method Detail
-
createCandidateSteps
public List<CandidateSteps> createCandidateSteps()
- Specified by:
createCandidateStepsin interfaceInjectableStepsFactory
-
hasAnnotatedMethods
protected boolean hasAnnotatedMethods(Type type)
Determines if the given type is aClasscontaining at least one method annotated with annotations from package "org.jbehave.core.annotations".- Parameters:
type- the Type of the steps instance- Returns:
- A boolean,
trueif at least one annotated method is found.
-
-