Package org.jbehave.core.configuration
Class AnnotationBuilder
- java.lang.Object
-
- org.jbehave.core.configuration.AnnotationBuilder
-
public class AnnotationBuilder extends Object
- Author:
- Cristiano GaviĆ£o, Mauro Talevi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AnnotationBuilder.InstantiationFailed
-
Constructor Summary
Constructors Constructor Description AnnotationBuilder(Class<?> annotatedClass)
AnnotationBuilder(Class<?> annotatedClass, AnnotationMonitor annotationMonitor)
-
Method Summary
Modifier and Type Method Description Class<?>
annotatedClass()
protected AnnotationFinder
annotationFinder()
protected AnnotationMonitor
annotationMonitor()
List<CandidateSteps>
buildCandidateSteps()
Builds CandidateSteps using annotationUsingSteps
found in the annotated object instance and using the configuration build bybuildConfiguration()
List<CandidateSteps>
buildCandidateSteps(Configuration configuration)
Builds CandidateSteps using annotationUsingSteps
found in the annotated object instance and the configuration providedConfiguration
buildConfiguration()
Builds a Configuration instance based on annotationConfigure
found in the annotated object instanceEmbedder
buildEmbedder()
InjectableStepsFactory
buildStepsFactory(Configuration configuration)
Builds theInjectableStepsFactory
using annotationUsingSteps
found in the annotated object instance and the configuration providedprotected Embedder
defaultEmbedder()
protected <T> Class<T>
elementImplementation(AnnotationFinder finder, String name)
Object
embeddableInstance()
protected Embedder
embedder()
AnnotationFinder
finder()
List<String>
findPaths()
protected Object
injectEmbedder(Embedder embedder, Class<?> annotatedClass)
protected <T,V extends T>
TinstanceOf(Class<T> type, Class<V> ofClass)
protected ParameterConverters
parameterConverters(AnnotationFinder annotationFinder, ResourceLoader resourceLoader, TableTransformers tableTransformers)
-
-
-
Constructor Detail
-
AnnotationBuilder
public AnnotationBuilder(Class<?> annotatedClass)
-
AnnotationBuilder
public AnnotationBuilder(Class<?> annotatedClass, AnnotationMonitor annotationMonitor)
-
-
Method Detail
-
annotatedClass
public Class<?> annotatedClass()
-
buildConfiguration
public Configuration buildConfiguration() throws AnnotationRequired
Builds a Configuration instance based on annotationConfigure
found in the annotated object instance- Returns:
- A Configuration instance
- Throws:
AnnotationRequired
-
buildCandidateSteps
public List<CandidateSteps> buildCandidateSteps()
Builds CandidateSteps using annotationUsingSteps
found in the annotated object instance and using the configuration build bybuildConfiguration()
- Returns:
- A List of CandidateSteps instances
-
buildCandidateSteps
public List<CandidateSteps> buildCandidateSteps(Configuration configuration)
Builds CandidateSteps using annotationUsingSteps
found in the annotated object instance and the configuration provided- Parameters:
configuration
- the Configuration- Returns:
- A List of CandidateSteps instances
-
buildStepsFactory
public InjectableStepsFactory buildStepsFactory(Configuration configuration)
Builds theInjectableStepsFactory
using annotationUsingSteps
found in the annotated object instance and the configuration provided- Parameters:
configuration
- the Configuration- Returns:
- A
InjectableStepsFactory
-
buildEmbedder
public Embedder buildEmbedder()
-
embedder
protected Embedder embedder()
-
defaultEmbedder
protected Embedder defaultEmbedder()
-
finder
public AnnotationFinder finder()
-
elementImplementation
protected <T> Class<T> elementImplementation(AnnotationFinder finder, String name)
-
parameterConverters
protected ParameterConverters parameterConverters(AnnotationFinder annotationFinder, ResourceLoader resourceLoader, TableTransformers tableTransformers)
-
annotationMonitor
protected AnnotationMonitor annotationMonitor()
-
annotationFinder
protected AnnotationFinder annotationFinder()
-
embeddableInstance
public Object embeddableInstance()
-
-