Class VariableClassDependencyFactory
java.lang.Object
net.officefloor.plugin.clazz.dependency.impl.VariableClassDependencyFactory
- All Implemented Interfaces:
ClassDependencyFactory
ClassDependencyFactory for a Var appropriately wrapped.- Author:
- Daniel Sagenschneider
-
Constructor Summary
ConstructorsConstructorDescriptionVariableClassDependencyFactory(int dependencyIndex, Function<Object, Object> transform) Instantiate. -
Method Summary
Modifier and TypeMethodDescriptionCreates the dependency forAdministration.createDependency(ManagedFunctionContext<Indexed, Indexed> context) Creates the dependency for aManagedFunction.createDependency(ManagedObject managedObject, ManagedObjectContext context, ObjectRegistry<Indexed> registry) Creates the dependency for aManagedObject.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.officefloor.plugin.clazz.dependency.ClassDependencyFactory
loadManagedObjectExecuteContext
-
Constructor Details
-
VariableClassDependencyFactory
Instantiate.- Parameters:
dependencyIndex- Index of the dependency.transform- Transforms theVarto appropriate dependency.
-
-
Method Details
-
createDependency
public Object createDependency(ManagedObject managedObject, ManagedObjectContext context, ObjectRegistry<Indexed> registry) throws Throwable Description copied from interface:ClassDependencyFactoryCreates the dependency for aManagedObject.- Specified by:
createDependencyin interfaceClassDependencyFactory- Parameters:
managedObject-ManagedObject.context-ManagedObjectContext.registry-ObjectRegistry.- Returns:
- Dependency.
- Throws:
Throwable- If fails to create the dependency.
-
createDependency
Description copied from interface:ClassDependencyFactoryCreates the dependency for aManagedFunction.- Specified by:
createDependencyin interfaceClassDependencyFactory- Parameters:
context-ManagedFunctionContext.- Returns:
- Dependency.
- Throws:
Throwable- If fails to create the dependency.
-
createDependency
public Object createDependency(AdministrationContext<Object, Indexed, throws ThrowableIndexed> context) Description copied from interface:ClassDependencyFactoryCreates the dependency forAdministration.- Specified by:
createDependencyin interfaceClassDependencyFactory- Parameters:
context-AdministrationContext.- Returns:
- Dependency.
- Throws:
Throwable- If fails to create the dependency.
-