public interface DependencyInjectable
| Modifier and Type | Method and Description |
|---|---|
default void |
addDependencies(java.util.Collection<? extends Dependency> dependencies)
Adds a collection of dependencies to the target.
|
void |
addDependency(Dependency dependency)
Adds a fully constructed
Dependency instance to the target. |
default void |
addDependency(java.lang.Object object)
Adds a dependency by wrapping the given object in a
Dependency. |
default void addDependencies(java.util.Collection<? extends Dependency> dependencies)
dependencies - the dependencies to adddefault void addDependency(java.lang.Object object)
Dependency.object - the object to register as a dependencyvoid addDependency(Dependency dependency)
Dependency instance to the target.dependency - the dependency to add