Class MethodClassDependencyInjector
- java.lang.Object
-
- net.officefloor.plugin.managedobject.clazz.MethodClassDependencyInjector
-
- All Implemented Interfaces:
ClassDependencyInjector
public class MethodClassDependencyInjector extends java.lang.Object implements ClassDependencyInjector
Field
ClassDependencyInjector
.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description MethodClassDependencyInjector(java.lang.reflect.Method method, ClassDependencyFactory[] parameterFactories)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Constructor Detail
-
MethodClassDependencyInjector
public MethodClassDependencyInjector(java.lang.reflect.Method method, ClassDependencyFactory[] parameterFactories)
Instantiate.- Parameters:
method
-Method
.parameterFactories
-ClassDependencyFactory
for theParameter
instances.
-
-
Method Detail
-
injectDependencies
public void injectDependencies(java.lang.Object object, ManagedObject managedObject, ManagedObjectContext context, ObjectRegistry<Indexed> registry) throws java.lang.Throwable
Description copied from interface:ClassDependencyInjector
Injects dependencies into the object.- Specified by:
injectDependencies
in interfaceClassDependencyInjector
- Parameters:
object
- Object to receive the dependencies.managedObject
-ManagedObject
.context
-ManagedObjectContext
.registry
-ObjectRegistry
.- Throws:
java.lang.Throwable
- If fails to inject the dependencies.
-
injectDependencies
public void injectDependencies(java.lang.Object object, ManagedFunctionContext<Indexed,Indexed> context) throws java.lang.Throwable
Description copied from interface:ClassDependencyInjector
Injects dependencies into the object (typically to invokeMethod
against).- Specified by:
injectDependencies
in interfaceClassDependencyInjector
- Parameters:
object
- Object to receive the dependencies.context
-ManagedFunctionContext
.- Throws:
java.lang.Throwable
- If fails to inject the dependencies.
-
injectDependencies
public void injectDependencies(java.lang.Object object, AdministrationContext<java.lang.Object,Indexed,Indexed> context) throws java.lang.Throwable
Description copied from interface:ClassDependencyInjector
Injects dependencies into the object (typically to invokeMethod
against).- Specified by:
injectDependencies
in interfaceClassDependencyInjector
- Parameters:
object
- Object to receive the dependencies.context
-AdministrationContext
.- Throws:
java.lang.Throwable
- If fails to inject the dependencies.
-
-