Class FieldClassDependencyInjector
- java.lang.Object
-
- net.officefloor.plugin.managedobject.clazz.FieldClassDependencyInjector
-
- All Implemented Interfaces:
ClassDependencyInjector
public class FieldClassDependencyInjector extends java.lang.Object implements ClassDependencyInjector
Field
ClassDependencyInjector
.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description FieldClassDependencyInjector(java.lang.reflect.Field field, ClassDependencyFactory factory)
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
-
FieldClassDependencyInjector
public FieldClassDependencyInjector(java.lang.reflect.Field field, ClassDependencyFactory factory)
Instantiate.- Parameters:
field
-Field
.factory
-ClassDependencyFactory
.
-
-
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.
-
-