Package org.jbehave.core.steps
Class ScanningStepsFactory
java.lang.Object
org.jbehave.core.steps.AbstractStepsFactory
org.jbehave.core.steps.ScanningStepsFactory
- All Implemented Interfaces:
InjectableStepsFactory
An
InjectableStepsFactory
that scans for classes in the classpath.
The constructors allows the specification of the package names to scan or the
root class from which the package name is derived. All classes that include
any step method annotation (Given
, When
, Then
,
Before
, After
, etc ... ) will be collected in the scan.
Additional regex filters on the class names are provided via the
matchingNames(String)
and notMatchingNames(String)
methods,
which by default match all names.-
Nested Class Summary
Nested classes/interfaces inherited from class org.jbehave.core.steps.AbstractStepsFactory
AbstractStepsFactory.StepsInstanceNotFound
-
Constructor Summary
ConstructorDescriptionScanningStepsFactory
(Configuration configuration, Class<?> root) ScanningStepsFactory
(Configuration configuration, String... packageNames) -
Method Summary
Modifier and TypeMethodDescriptioncreateInstanceOfType
(Class<?> type) matchingNames
(String matchingRegex) notMatchingNames
(String notMatchingRegex) Methods inherited from class org.jbehave.core.steps.AbstractStepsFactory
createCandidateSteps, hasAnnotatedMethods
-
Constructor Details
-
ScanningStepsFactory
-
ScanningStepsFactory
-
-
Method Details
-
matchingNames
-
notMatchingNames
-
stepsTypes
- Specified by:
stepsTypes
in classAbstractStepsFactory
-
createInstanceOfType
-