Package mireka.startup
Class DependencyInjection
- Object
-
- mireka.startup.DependencyInjection
-
public class DependencyInjection extends ObjectDependencyInjection maintains a collection of injectable default objects, and is able to inject those objects into uninitialized properties of other configuration objects.
-
-
Constructor Summary
Constructors Constructor Description DependencyInjection()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddInjectable(Object object)Registers the object as an object which can be injected later into uninitialized properties.static voidinjectDependencies(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.
-
-
-
Method Detail
-
addInjectable
public static void addInjectable(Object object)
Registers the object as an object which can be injected later into uninitialized properties.- Parameters:
object- The object which can be injected
-
injectDependencies
public 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.- Parameters:
object- The object that may have uninitialized propertiesinitializedProperties- The list of properties which were explicitly initialized.
-
-