Interface ClassDependencyInjector
- All Known Implementing Classes:
FieldClassDependencyInjector,MethodClassDependencyInjector
public interface ClassDependencyInjector
Injector of dependencies into an object.
- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionvoidinjectDependencies(Object object, AdministrationContext<Object, Indexed, Indexed> context) Injects dependencies into the object (typically to invokeMethodagainst).voidinjectDependencies(Object object, ManagedFunctionContext<Indexed, Indexed> context) Injects dependencies into the object (typically to invokeMethodagainst).voidinjectDependencies(Object object, ManagedObject managedObject, ManagedObjectContext context, ObjectRegistry<Indexed> registry) Injects dependencies into the object.
-
Method Details
-
injectDependencies
void injectDependencies(Object object, ManagedObject managedObject, ManagedObjectContext context, ObjectRegistry<Indexed> registry) throws Throwable Injects dependencies into the object.- Parameters:
object- Object to receive the dependencies.managedObject-ManagedObject.context-ManagedObjectContext.registry-ObjectRegistry.- Throws:
Throwable- If fails to inject the dependencies.
-
injectDependencies
void injectDependencies(Object object, ManagedFunctionContext<Indexed, Indexed> context) throws ThrowableInjects dependencies into the object (typically to invokeMethodagainst).- Parameters:
object- Object to receive the dependencies.context-ManagedFunctionContext.- Throws:
Throwable- If fails to inject the dependencies.
-
injectDependencies
void injectDependencies(Object object, AdministrationContext<Object, Indexed, throws ThrowableIndexed> context) Injects dependencies into the object (typically to invokeMethodagainst).- Parameters:
object- Object to receive the dependencies.context-AdministrationContext.- Throws:
Throwable- If fails to inject the dependencies.
-