Class SpringAnnotationBuilder
java.lang.Object
org.jbehave.core.configuration.AnnotationBuilder
org.jbehave.core.configuration.spring.SpringAnnotationBuilder
Extends
AnnotationBuilder to provide Spring-based dependency
injection if UsingSpring annotation is present.- Author:
- Cristiano Gavião, Mauro Talevi
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jbehave.core.configuration.AnnotationBuilder
AnnotationBuilder.InstantiationFailed -
Constructor Summary
ConstructorsConstructorDescriptionSpringAnnotationBuilder(Class<?> annotatedClass) SpringAnnotationBuilder(Class<?> annotatedClass, AnnotationMonitor annotationMonitor) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.context.ApplicationContextbuildStepsFactory(Configuration configuration) protected org.springframework.context.ApplicationContextcreateApplicationContext(ClassLoader classLoader, List<String> resources) protected <T,V extends T>
TinstanceOf(Class<T> type, Class<V> ofClass) protected ParameterConvertersparameterConverters(AnnotationFinder annotationFinder, ResourceLoader resourceLoader, TableTransformers tableTransformers) Methods inherited from class org.jbehave.core.configuration.AnnotationBuilder
annotatedClass, annotationFinder, annotationMonitor, buildCandidateSteps, buildCandidateSteps, buildEmbedder, defaultEmbedder, elementImplementation, embeddableInstance, embedder, finder, findPaths, injectEmbedder
-
Constructor Details
-
SpringAnnotationBuilder
-
SpringAnnotationBuilder
-
-
Method Details
-
buildConfiguration
- Overrides:
buildConfigurationin classAnnotationBuilder- Throws:
AnnotationRequired
-
buildStepsFactory
- Overrides:
buildStepsFactoryin classAnnotationBuilder
-
parameterConverters
protected ParameterConverters parameterConverters(AnnotationFinder annotationFinder, ResourceLoader resourceLoader, TableTransformers tableTransformers) - Overrides:
parameterConvertersin classAnnotationBuilder
-
instanceOf
- Overrides:
instanceOfin classAnnotationBuilder
-
createApplicationContext
protected org.springframework.context.ApplicationContext createApplicationContext(ClassLoader classLoader, List<String> resources) -
applicationContext
protected org.springframework.context.ApplicationContext applicationContext()
-