|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jbehave.core.configuration.AnnotationBuilder
public class AnnotationBuilder
Allows the building of Configuration
, CandidateSteps
and
Embedder
from an annotated class.
Nested Class Summary | |
---|---|
static class |
AnnotationBuilder.InstantiationFailed
|
Constructor Summary | |
---|---|
AnnotationBuilder(Class<?> annotatedClass)
|
|
AnnotationBuilder(Class<?> annotatedClass,
AnnotationMonitor annotationMonitor)
|
Method Summary | ||
---|---|---|
Class<?> |
annotatedClass()
|
|
protected AnnotationFinder |
annotationFinder()
|
|
protected AnnotationMonitor |
annotationMonitor()
|
|
List<CandidateSteps> |
buildCandidateSteps()
Builds CandidateSteps using annotation UsingSteps found in the
annotated object instance and using the configuration build by
buildConfiguration() |
|
List<CandidateSteps> |
buildCandidateSteps(Configuration configuration)
Builds CandidateSteps using annotation UsingSteps found in the
annotated object instance and the configuration provided |
|
Configuration |
buildConfiguration()
Builds a Configuration instance based on annotation Configure
found in the annotated object instance |
|
Embedder |
buildEmbedder()
|
|
InjectableStepsFactory |
buildStepsFactory(Configuration configuration)
Builds the InjectableStepsFactory using annotation
UsingSteps found in the annotated object instance and the
configuration provided |
|
Object |
embeddableInstance()
|
|
List<String> |
findPaths()
|
|
protected Object |
injectEmbedder(Embedder embedder,
Class<?> annotatedClass)
|
|
protected
|
instanceOf(Class<T> type,
Class<V> ofClass)
|
|
protected ParameterConverters |
parameterConverters(AnnotationFinder annotationFinder)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnnotationBuilder(Class<?> annotatedClass)
public AnnotationBuilder(Class<?> annotatedClass, AnnotationMonitor annotationMonitor)
Method Detail |
---|
public Class<?> annotatedClass()
public Configuration buildConfiguration() throws AnnotationRequired
Configure
found in the annotated object instance
AnnotationRequired
public List<CandidateSteps> buildCandidateSteps()
UsingSteps
found in the
annotated object instance and using the configuration build by
buildConfiguration()
public List<CandidateSteps> buildCandidateSteps(Configuration configuration)
UsingSteps
found in the
annotated object instance and the configuration provided
configuration
- the Configuration
public InjectableStepsFactory buildStepsFactory(Configuration configuration)
InjectableStepsFactory
using annotation
UsingSteps
found in the annotated object instance and the
configuration provided
configuration
- the Configuration
InjectableStepsFactory
public Embedder buildEmbedder()
public List<String> findPaths()
protected ParameterConverters parameterConverters(AnnotationFinder annotationFinder)
protected <T,V extends T> T instanceOf(Class<T> type, Class<V> ofClass)
protected AnnotationMonitor annotationMonitor()
protected AnnotationFinder annotationFinder()
public Object embeddableInstance()
protected Object injectEmbedder(Embedder embedder, Class<?> annotatedClass)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |