Class MethodClassDependencyInjector
java.lang.Object
net.officefloor.plugin.managedobject.clazz.MethodClassDependencyInjector
- All Implemented Interfaces:
ClassDependencyInjector
- Author:
- Daniel Sagenschneider
-
Constructor Summary
ConstructorsConstructorDescriptionMethodClassDependencyInjector(Method method, ClassDependencyFactory[] parameterFactories) Instantiate. -
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.
-
Constructor Details
-
MethodClassDependencyInjector
Instantiate.- Parameters:
method-Method.parameterFactories-ClassDependencyFactoryfor theParameterinstances.
-
-
Method Details
-
injectDependencies
public void injectDependencies(Object object, ManagedObject managedObject, ManagedObjectContext context, ObjectRegistry<Indexed> registry) throws Throwable Description copied from interface:ClassDependencyInjectorInjects dependencies into the object.- Specified by:
injectDependenciesin interfaceClassDependencyInjector- Parameters:
object- Object to receive the dependencies.managedObject-ManagedObject.context-ManagedObjectContext.registry-ObjectRegistry.- Throws:
Throwable- If fails to inject the dependencies.
-
injectDependencies
public void injectDependencies(Object object, ManagedFunctionContext<Indexed, Indexed> context) throws ThrowableDescription copied from interface:ClassDependencyInjectorInjects dependencies into the object (typically to invokeMethodagainst).- Specified by:
injectDependenciesin interfaceClassDependencyInjector- Parameters:
object- Object to receive the dependencies.context-ManagedFunctionContext.- Throws:
Throwable- If fails to inject the dependencies.
-
injectDependencies
public void injectDependencies(Object object, AdministrationContext<Object, Indexed, throws ThrowableIndexed> context) Description copied from interface:ClassDependencyInjectorInjects dependencies into the object (typically to invokeMethodagainst).- Specified by:
injectDependenciesin interfaceClassDependencyInjector- Parameters:
object- Object to receive the dependencies.context-AdministrationContext.- Throws:
Throwable- If fails to inject the dependencies.
-