Interface ClassDependencyInjector
-
- All Known Implementing Classes:
FieldClassDependencyInjector
,MethodClassDependencyInjector
public interface ClassDependencyInjector
Injector of dependencies into an object.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
injectDependencies(java.lang.Object object, AdministrationContext<java.lang.Object,Indexed,Indexed> context)
Injects dependencies into the object (typically to invokeMethod
against).void
injectDependencies(java.lang.Object object, ManagedFunctionContext<Indexed,Indexed> context)
Injects dependencies into the object (typically to invokeMethod
against).void
injectDependencies(java.lang.Object object, ManagedObject managedObject, ManagedObjectContext context, ObjectRegistry<Indexed> registry)
Injects dependencies into the object.
-
-
-
Method Detail
-
injectDependencies
void injectDependencies(java.lang.Object object, ManagedObject managedObject, ManagedObjectContext context, ObjectRegistry<Indexed> registry) throws java.lang.Throwable
Injects dependencies into the object.- Parameters:
object
- Object to receive the dependencies.managedObject
-ManagedObject
.context
-ManagedObjectContext
.registry
-ObjectRegistry
.- Throws:
java.lang.Throwable
- If fails to inject the dependencies.
-
injectDependencies
void injectDependencies(java.lang.Object object, ManagedFunctionContext<Indexed,Indexed> context) throws java.lang.Throwable
Injects dependencies into the object (typically to invokeMethod
against).- Parameters:
object
- Object to receive the dependencies.context
-ManagedFunctionContext
.- Throws:
java.lang.Throwable
- If fails to inject the dependencies.
-
injectDependencies
void injectDependencies(java.lang.Object object, AdministrationContext<java.lang.Object,Indexed,Indexed> context) throws java.lang.Throwable
Injects dependencies into the object (typically to invokeMethod
against).- Parameters:
object
- Object to receive the dependencies.context
-AdministrationContext
.- Throws:
java.lang.Throwable
- If fails to inject the dependencies.
-
-