Class SpringAnnotationBuilder
- java.lang.Object
-
- org.jbehave.core.configuration.AnnotationBuilder
-
- org.jbehave.core.configuration.spring.SpringAnnotationBuilder
-
public class SpringAnnotationBuilder extends AnnotationBuilder
ExtendsAnnotationBuilder
to provide Spring-based dependency injection ifUsingSpring
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
Constructors Constructor Description SpringAnnotationBuilder(Class<?> annotatedClass)
SpringAnnotationBuilder(Class<?> annotatedClass, AnnotationMonitor annotationMonitor)
-
Method Summary
Modifier and Type Method Description protected org.springframework.context.ApplicationContext
applicationContext()
Configuration
buildConfiguration()
InjectableStepsFactory
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 Detail
-
SpringAnnotationBuilder
public SpringAnnotationBuilder(Class<?> annotatedClass)
-
SpringAnnotationBuilder
public SpringAnnotationBuilder(Class<?> annotatedClass, AnnotationMonitor annotationMonitor)
-
-
Method Detail
-
buildConfiguration
public Configuration buildConfiguration() throws AnnotationRequired
- Overrides:
buildConfiguration
in classAnnotationBuilder
- Throws:
AnnotationRequired
-
buildStepsFactory
public InjectableStepsFactory buildStepsFactory(Configuration configuration)
- Overrides:
buildStepsFactory
in classAnnotationBuilder
-
parameterConverters
protected ParameterConverters parameterConverters(AnnotationFinder annotationFinder, ResourceLoader resourceLoader, TableTransformers tableTransformers)
- Overrides:
parameterConverters
in classAnnotationBuilder
-
instanceOf
protected <T,V extends T> T instanceOf(Class<T> type, Class<V> ofClass)
- Overrides:
instanceOf
in classAnnotationBuilder
-
createApplicationContext
protected org.springframework.context.ApplicationContext createApplicationContext(ClassLoader classLoader, List<String> resources)
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext()
-
-