Class ClassObjectFactory
java.lang.Object
net.officefloor.plugin.clazz.factory.ClassObjectFactory
Creates an object from
Class.- Author:
- Daniel Sagenschneider
-
Constructor Summary
ConstructorsConstructorDescriptionClassObjectFactory(Constructor<?> constructor, ClassDependencyFactory[] constructorDependencyFactories, ClassDependencyInjector[] dependencyInjectors) Instantiate. -
Method Summary
Modifier and TypeMethodDescriptioncreateObject(AdministrationContext<Object, Indexed, Indexed> context) Creates the object within theAdministrationcontext.createObject(ManagedFunctionContext<Indexed, Indexed> context) Creates the object within aManagedFunctioncontext.createObject(ManagedObject managedObject, ManagedObjectContext context, ObjectRegistry<Indexed> registry) Creates the object within aManagedObjectcontext.
-
Constructor Details
-
ClassObjectFactory
public ClassObjectFactory(Constructor<?> constructor, ClassDependencyFactory[] constructorDependencyFactories, ClassDependencyInjector[] dependencyInjectors) Instantiate.- Parameters:
constructor-Constructorto instantiate the object.constructorDependencyFactories-ConstructorClassDependencyFactoryinstances.dependencyInjectors-ClassDependencyInjectorinstances.
-
-
Method Details
-
createObject
public Object createObject(ManagedObject managedObject, ManagedObjectContext context, ObjectRegistry<Indexed> registry) throws Throwable Creates the object within aManagedObjectcontext.- Parameters:
managedObject-ManagedObject.context-ManagedObjectContext.registry-ObjectRegistry.- Returns:
- Created object.
- Throws:
Throwable- If fails to create object.
-
createObject
Creates the object within aManagedFunctioncontext.- Parameters:
context-ManagedFunctionContext.- Returns:
- Created object.
- Throws:
Throwable- If fails to create object.
-
createObject
Creates the object within theAdministrationcontext.- Parameters:
context-AdministrationContext.- Returns:
- Created object.
- Throws:
Throwable- If fails to create object.
-