public class NeedleStepsFactory extends org.needle4j.NeedleTestcase implements InjectableStepsFactory
InjectableStepsFactory that uses a Needle InjectionProvider for the composition and instantiation
of all components that contain JBehave annotated methods.| Constructor and Description |
|---|
NeedleStepsFactory(Configuration configuration,
Class<?>... steps)
Creates factory with given configuration and step instances.
|
NeedleStepsFactory(Configuration configuration,
Set<org.needle4j.injection.InjectionProvider<?>> injectionProviders,
Class<?>... steps)
Creates factory with given configuration, injection providers and step instances.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addInjectionProviders(Set<org.needle4j.injection.InjectionProvider<?>> providers)
Add injection providers.
|
List<CandidateSteps> |
createCandidateSteps() |
Object |
createInstanceOfType(Class<?> type) |
public NeedleStepsFactory(Configuration configuration, Class<?>... steps)
configuration - JBehave configurationsteps - step classespublic NeedleStepsFactory(Configuration configuration, Set<org.needle4j.injection.InjectionProvider<?>> injectionProviders, Class<?>... steps)
configuration - JBehave configurationinjectionProviders - injection providers.steps - step classespublic List<CandidateSteps> createCandidateSteps()
createCandidateSteps in interface InjectableStepsFactorypublic Object createInstanceOfType(Class<?> type)
createInstanceOfType in interface InjectableStepsFactorypublic void addInjectionProviders(Set<org.needle4j.injection.InjectionProvider<?>> providers)
providers - add injection providers after factory construction.Copyright © 2003–2021. All rights reserved.