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
ConstructorDescriptionSpringAnnotationBuilder
(Class<?> annotatedClass) SpringAnnotationBuilder
(Class<?> annotatedClass, AnnotationMonitor annotationMonitor) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.context.ApplicationContext
buildStepsFactory
(Configuration configuration) protected org.springframework.context.ApplicationContext
createApplicationContext
(ClassLoader classLoader, List<String> resources) protected <T,
V extends T>
TinstanceOf
(Class<T> type, Class<V> ofClass) protected ParameterConverters
parameterConverters
(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:
buildConfiguration
in classAnnotationBuilder
- Throws:
AnnotationRequired
-
buildStepsFactory
- Overrides:
buildStepsFactory
in classAnnotationBuilder
-
parameterConverters
protected ParameterConverters parameterConverters(AnnotationFinder annotationFinder, ResourceLoader resourceLoader, TableTransformers tableTransformers) - Overrides:
parameterConverters
in classAnnotationBuilder
-
instanceOf
- Overrides:
instanceOf
in classAnnotationBuilder
-
createApplicationContext
protected org.springframework.context.ApplicationContext createApplicationContext(ClassLoader classLoader, List<String> resources) -
applicationContext
protected org.springframework.context.ApplicationContext applicationContext()
-