Package org.jbehave.core.steps
Class AbstractStepsFactory
java.lang.Object
org.jbehave.core.steps.AbstractStepsFactory
- All Implemented Interfaces:
InjectableStepsFactory
- Direct Known Subclasses:
InstanceStepsFactory,ScanningStepsFactory
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.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanhasAnnotatedMethods(Type type) Determines if the given type is aClasscontaining at least one method annotated with annotations from package "org.jbehave.core.annotations".Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jbehave.core.steps.InjectableStepsFactory
createInstanceOfType
-
Constructor Details
-
AbstractStepsFactory
-
-
Method Details
-
createCandidateSteps
- Specified by:
createCandidateStepsin interfaceInjectableStepsFactory
-
stepsTypes
-
hasAnnotatedMethods
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.
-