Class PicoAnnotationBuilder
java.lang.Object
org.jbehave.core.configuration.AnnotationBuilder
org.jbehave.core.configuration.pico.PicoAnnotationBuilder
Extends
AnnotationBuilder
to provide PicoContainer-based
dependency injection if UsingPico
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
ConstructorDescriptionPicoAnnotationBuilder
(Class<?> annotatedClass) PicoAnnotationBuilder
(Class<?> annotatedClass, AnnotationMonitor annotationMonitor) -
Method Summary
Modifier and TypeMethodDescriptionbuildStepsFactory
(Configuration configuration) protected org.picocontainer.PicoContainer
createPicoContainer
(List<PicoModule> modules) protected <T,
V extends T>
TinstanceOf
(Class<T> type, Class<V> ofClass) protected ParameterConverters
parameterConverters
(AnnotationFinder annotationFinder, ResourceLoader resourceLoader, TableTransformers tableTransformers) protected org.picocontainer.PicoContainer
Methods inherited from class org.jbehave.core.configuration.AnnotationBuilder
annotatedClass, annotationFinder, annotationMonitor, buildCandidateSteps, buildCandidateSteps, buildEmbedder, defaultEmbedder, elementImplementation, embeddableInstance, embedder, finder, findPaths, injectEmbedder
-
Constructor Details
-
PicoAnnotationBuilder
-
PicoAnnotationBuilder
-
-
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
-
createPicoContainer
-
picoContainer
protected org.picocontainer.PicoContainer picoContainer()
-