public class Avicenna
extends java.lang.Object
Dependency
references from DependencyFactory objects and inject
them into fields annotated by InjectHere.Dependency,
DependencyFactory,
InjectHere| Constructor and Description |
|---|
Avicenna() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addDependencyFactory(java.lang.Object... dependencyFactories)
Adds an object annotated by
DependencyFactory. |
static void |
inject(java.lang.Object... objects)
Whenever this method is called, all objects in input argument are searched for
annotated fields.
|
public static void addDependencyFactory(java.lang.Object... dependencyFactories)
DependencyFactory. Added object
has some methods or fields which supplied dependencies.dependencyFactories - An object annotated by DependencyFactory.public static void inject(java.lang.Object... objects)
objects - List of objects which they should be injected.Copyright © 2015. All Rights Reserved.