Class ClassObjectFactory
- java.lang.Object
-
- net.officefloor.plugin.clazz.factory.ClassObjectFactory
-
public class ClassObjectFactory extends java.lang.ObjectCreates an object fromClass.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ClassObjectFactory(java.lang.reflect.Constructor<?> constructor, ClassDependencyFactory[] constructorDependencyFactories, ClassDependencyInjector[] dependencyInjectors)Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectcreateObject(AdministrationContext<java.lang.Object,Indexed,Indexed> context)Creates the object within theAdministrationcontext.java.lang.ObjectcreateObject(ManagedFunctionContext<Indexed,Indexed> context)Creates the object within aManagedFunctioncontext.java.lang.ObjectcreateObject(ManagedObject managedObject, ManagedObjectContext context, ObjectRegistry<Indexed> registry)Creates the object within aManagedObjectcontext.
-
-
-
Constructor Detail
-
ClassObjectFactory
public ClassObjectFactory(java.lang.reflect.Constructor<?> constructor, ClassDependencyFactory[] constructorDependencyFactories, ClassDependencyInjector[] dependencyInjectors)Instantiate.- Parameters:
constructor-Constructorto instantiate the object.constructorDependencyFactories-ConstructorClassDependencyFactoryinstances.dependencyInjectors-ClassDependencyInjectorinstances.
-
-
Method Detail
-
createObject
public java.lang.Object createObject(ManagedObject managedObject, ManagedObjectContext context, ObjectRegistry<Indexed> registry) throws java.lang.Throwable
Creates the object within aManagedObjectcontext.- Parameters:
managedObject-ManagedObject.context-ManagedObjectContext.registry-ObjectRegistry.- Returns:
- Created object.
- Throws:
java.lang.Throwable- If fails to create object.
-
createObject
public java.lang.Object createObject(ManagedFunctionContext<Indexed,Indexed> context) throws java.lang.Throwable
Creates the object within aManagedFunctioncontext.- Parameters:
context-ManagedFunctionContext.- Returns:
- Created object.
- Throws:
java.lang.Throwable- If fails to create object.
-
createObject
public java.lang.Object createObject(AdministrationContext<java.lang.Object,Indexed,Indexed> context) throws java.lang.Throwable
Creates the object within theAdministrationcontext.- Parameters:
context-AdministrationContext.- Returns:
- Created object.
- Throws:
java.lang.Throwable- If fails to create object.
-
-