Class ManagedFunctionContextClassDependencyManufacturer
java.lang.Object
net.officefloor.plugin.clazz.dependency.impl.ManagedFunctionContextClassDependencyManufacturer
- All Implemented Interfaces:
ServiceFactory<ClassDependencyManufacturer>,ClassDependencyFactory,ClassDependencyManufacturer,ClassDependencyManufacturerServiceFactory
public class ManagedFunctionContextClassDependencyManufacturer
extends Object
implements ClassDependencyManufacturer, ClassDependencyManufacturerServiceFactory, ClassDependencyFactory
- Author:
- Daniel Sagenschneider
-
Constructor Summary
Constructors -
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.Creates theClassDependencyFactoryfor the particular dependency.createService(ServiceContext context) Creates the service.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
-
ManagedFunctionContextClassDependencyManufacturer
public ManagedFunctionContextClassDependencyManufacturer()
-
-
Method Details
-
createService
Description copied from interface:ServiceFactoryCreates the service.- Specified by:
createServicein interfaceServiceFactory<ClassDependencyManufacturer>- Parameters:
context-ServiceContext.- Returns:
- Service.
- Throws:
Throwable- If fails to create the service.
-
createParameterFactory
public ClassDependencyFactory createParameterFactory(ClassDependencyManufacturerContext context) throws Exception Description copied from interface:ClassDependencyManufacturerCreates the
ClassDependencyFactoryfor the particular dependency.Should the
ClassDependencyManufacturernot handled the dependency, it should returnnull. This is because the firstClassDependencyManufacturerproviding aClassDependencyFactorywill be used.- Specified by:
createParameterFactoryin interfaceClassDependencyManufacturer- Parameters:
context-ClassDependencyManufacturerContext.- Returns:
ClassDependencyFactoryornullif not able to handle dependency.- Throws:
Exception- If fails to create theClassDependencyFactory.
-
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(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
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.
-