| Package | Description |
|---|---|
| ch.jalu.injector | |
| ch.jalu.injector.handlers.dependency | |
| ch.jalu.injector.handlers.instantiation | |
| ch.jalu.injector.handlers.postconstruct | |
| ch.jalu.injector.testing.runner |
| Modifier and Type | Method and Description |
|---|---|
static List<Handler> |
InjectorBuilder.createDefaultHandlers(String rootPackage)
Returns all handlers that are added to the injector by default.
|
static List<Handler> |
InjectorBuilder.createInstantiationProviders(String rootPackage)
Creates all default handlers implementing
resolve(ch.jalu.injector.context.ResolutionContext). |
List<Handler> |
InjectorConfig.getHandlers() |
| Modifier and Type | Method and Description |
|---|---|
InjectorBuilder |
InjectorBuilder.addHandlers(Handler... handlers)
Add handlers to the config.
|
| Modifier and Type | Method and Description |
|---|---|
void |
InjectorConfig.addHandlers(Collection<? extends Handler> handlers) |
InjectorBuilder |
InjectorBuilder.addHandlers(Collection<? extends Handler> handlers)
Add handlers to the config.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CyclicDependenciesDetector
Detects cycles in the dependencies based on the context's parents.
|
class |
FactoryDependencyHandler
Dependency handler that builds
Factory objects. |
class |
SavedAnnotationsHandler
Simple handler that allows you to save a value for a custom annotation.
|
class |
SingletonStoreDependencyHandler
Dependency handler that builds
SingletonStore objects. |
class |
TypeSafeAnnotationHandler<T extends Annotation>
Type safe annotation handler base, which will fire the resolve method only if
an annotation of the given type is present.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultInjectionProvider
The injector's default instantiation provider.
|
class |
DirectInstantiationProvider
Instantiation provider for instantiations that happen on the class directly,
i.e.
|
class |
InstantiationCache
Primitive "cache" for instantiation methods.
|
class |
ProviderHandler
Default handler for
Provider objects. |
class |
StandardInjectionProvider
Provider of
Resolution objects that roughly follows the documentation as given in Inject. |
| Modifier and Type | Class and Description |
|---|---|
class |
PostConstructMethodInvoker
Searches newly instantiated classes for
PostConstruct method
and validates their usage before executing it. |
| Modifier and Type | Class and Description |
|---|---|
class |
AnnotationResolver
Resolves dependency by annotation: if a field is present in the test class with the same annotation as
on the dependency, the field will be used if the type matches.
|
class |
MockDependencyHandler
Resolves a dependency by retrieving the value from a corresponding @Mock field.
|
Copyright © 2017. All rights reserved.