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 classAnnotationBuilder.InstantiationFailed
-
Constructor Summary
Constructors Constructor Description AnnotationBuilder(Class<?> annotatedClass)AnnotationBuilder(Class<?> annotatedClass, AnnotationMonitor annotationMonitor)
-
Method Summary
Modifier and Type Method Description Class<?>annotatedClass()protected AnnotationFinderannotationFinder()protected AnnotationMonitorannotationMonitor()List<CandidateSteps>buildCandidateSteps()Builds CandidateSteps using annotationUsingStepsfound in the annotated object instance and using the configuration build bybuildConfiguration()List<CandidateSteps>buildCandidateSteps(Configuration configuration)Builds CandidateSteps using annotationUsingStepsfound in the annotated object instance and the configuration providedConfigurationbuildConfiguration()Builds a Configuration instance based on annotationConfigurefound in the annotated object instanceEmbedderbuildEmbedder()InjectableStepsFactorybuildStepsFactory(Configuration configuration)Builds theInjectableStepsFactoryusing annotationUsingStepsfound in the annotated object instance and the configuration providedprotected EmbedderdefaultEmbedder()protected <T> Class<T>elementImplementation(AnnotationFinder finder, String name)ObjectembeddableInstance()protected Embedderembedder()AnnotationFinderfinder()List<String>findPaths()protected ObjectinjectEmbedder(Embedder embedder, Class<?> annotatedClass)protected <T,V extends T>
TinstanceOf(Class<T> type, Class<V> ofClass)protected ParameterConvertersparameterConverters(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 annotationConfigurefound in the annotated object instance- Returns:
- A Configuration instance
- Throws:
AnnotationRequired
-
buildCandidateSteps
public List<CandidateSteps> buildCandidateSteps()
Builds CandidateSteps using annotationUsingStepsfound 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 annotationUsingStepsfound 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 theInjectableStepsFactoryusing annotationUsingStepsfound 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()
-
-