public class DependencyInjection
extends Object
Constructor and Description |
---|
DependencyInjection() |
Modifier and Type | Method and Description |
---|---|
static void |
addInjectable(Object object)
Registers the object as an object which can be injected later into
uninitialized properties.
|
static void |
injectDependencies(Object object,
java.util.List<String> initializedProperties)
Initializes the properties that has not got a value explicitly and are
annotated with @Inject annotation with default objects selected from the
set of injectable objects.
|
public static void addInjectable(Object object)
object
- The object which can be injectedpublic static void injectDependencies(Object object, java.util.List<String> initializedProperties)
object
- The object that may have uninitialized propertiesinitializedProperties
- The list of properties which were explicitly initialized.