public class SpringAnnotationBuilder extends AnnotationBuilder
AnnotationBuilder
to provide Spring-based dependency
injection if UsingSpring
annotation is present.AnnotationBuilder.InstantiationFailed
Constructor and Description |
---|
SpringAnnotationBuilder(Class<?> annotatedClass) |
SpringAnnotationBuilder(Class<?> annotatedClass,
AnnotationMonitor annotationMonitor) |
Modifier and Type | Method and 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> |
instanceOf(Class<T> type,
Class<V> ofClass) |
protected ParameterConverters |
parameterConverters(AnnotationFinder annotationFinder,
ResourceLoader resourceLoader,
TableTransformers tableTransformers) |
annotatedClass, annotationFinder, annotationMonitor, buildCandidateSteps, buildCandidateSteps, buildEmbedder, defaultEmbedder, elementImplementation, embeddableInstance, embedder, finder, findPaths, injectEmbedder
public SpringAnnotationBuilder(Class<?> annotatedClass)
public SpringAnnotationBuilder(Class<?> annotatedClass, AnnotationMonitor annotationMonitor)
public Configuration buildConfiguration() throws AnnotationRequired
buildConfiguration
in class AnnotationBuilder
AnnotationRequired
public InjectableStepsFactory buildStepsFactory(Configuration configuration)
buildStepsFactory
in class AnnotationBuilder
protected ParameterConverters parameterConverters(AnnotationFinder annotationFinder, ResourceLoader resourceLoader, TableTransformers tableTransformers)
parameterConverters
in class AnnotationBuilder
protected <T,V extends T> T instanceOf(Class<T> type, Class<V> ofClass)
instanceOf
in class AnnotationBuilder
protected org.springframework.context.ApplicationContext createApplicationContext(ClassLoader classLoader, List<String> resources)
protected org.springframework.context.ApplicationContext applicationContext()
Copyright © 2003–2021. All rights reserved.