Class ScanningStepsFactory

java.lang.Object
org.jbehave.core.steps.AbstractStepsFactory
org.jbehave.core.steps.ScanningStepsFactory
All Implemented Interfaces:
InjectableStepsFactory

public class ScanningStepsFactory extends AbstractStepsFactory
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.