public class GuiceAnnotationBuilder extends AnnotationBuilder
AnnotationBuilder
to provide Guice-based dependency injection
if UsingGuice
annotation is present.AnnotationBuilder.InstantiationFailed
Modifier and Type | Field and Description |
---|---|
com.google.inject.Injector |
injector |
Constructor and Description |
---|
GuiceAnnotationBuilder(Class<?> annotatedClass) |
GuiceAnnotationBuilder(Class<?> annotatedClass,
AnnotationMonitor annotationMonitor) |
Modifier and Type | Method and Description |
---|---|
Configuration |
buildConfiguration() |
InjectableStepsFactory |
buildStepsFactory(Configuration configuration) |
protected com.google.inject.Injector |
createInjector(List<com.google.inject.Module> modules) |
protected com.google.inject.Injector |
injector() |
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 GuiceAnnotationBuilder(Class<?> annotatedClass)
public GuiceAnnotationBuilder(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 com.google.inject.Injector createInjector(List<com.google.inject.Module> modules)
protected com.google.inject.Injector injector()
Copyright © 2003–2021. All rights reserved.