Class LoggerClassDependencyManufacturer
- java.lang.Object
-
- net.officefloor.plugin.clazz.dependency.impl.LoggerClassDependencyManufacturer
-
- All Implemented Interfaces:
ServiceFactory<ClassDependencyManufacturer>,ClassDependencyFactory,ClassDependencyManufacturer,ClassDependencyManufacturerServiceFactory
public class LoggerClassDependencyManufacturer extends java.lang.Object implements ClassDependencyManufacturer, ClassDependencyManufacturerServiceFactory, ClassDependencyFactory
ClassDependencyManufacturerforLogger.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description LoggerClassDependencyManufacturer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectcreateDependency(AdministrationContext<java.lang.Object,Indexed,Indexed> context)Creates the dependency forAdministration.java.lang.ObjectcreateDependency(ManagedFunctionContext<Indexed,Indexed> context)Creates the dependency for aManagedFunction.java.lang.ObjectcreateDependency(ManagedObject managedObject, ManagedObjectContext context, ObjectRegistry<Indexed> registry)Creates the dependency for aManagedObject.ClassDependencyFactorycreateParameterFactory(ClassDependencyManufacturerContext context)Creates theClassDependencyFactoryfor the particular dependency.ClassDependencyManufacturercreateService(ServiceContext context)Creates the service.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.officefloor.plugin.clazz.dependency.ClassDependencyFactory
loadManagedObjectExecuteContext
-
-
-
-
Method Detail
-
createService
public ClassDependencyManufacturer createService(ServiceContext context) throws java.lang.Throwable
Description copied from interface:ServiceFactoryCreates the service.- Specified by:
createServicein interfaceServiceFactory<ClassDependencyManufacturer>- Parameters:
context-ServiceContext.- Returns:
- Service.
- Throws:
java.lang.Throwable- If fails to create the service.
-
createParameterFactory
public ClassDependencyFactory createParameterFactory(ClassDependencyManufacturerContext context) throws java.lang.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:
java.lang.Exception- If fails to create theClassDependencyFactory.
-
createDependency
public java.lang.Object createDependency(ManagedObject managedObject, ManagedObjectContext context, ObjectRegistry<Indexed> registry) throws java.lang.Throwable
Description copied from interface:ClassDependencyFactoryCreates the dependency for aManagedObject.- Specified by:
createDependencyin interfaceClassDependencyFactory- Parameters:
managedObject-ManagedObject.context-ManagedObjectContext.registry-ObjectRegistry.- Returns:
- Dependency.
- Throws:
java.lang.Throwable- If fails to create the dependency.
-
createDependency
public java.lang.Object createDependency(ManagedFunctionContext<Indexed,Indexed> context) throws java.lang.Throwable
Description copied from interface:ClassDependencyFactoryCreates the dependency for aManagedFunction.- Specified by:
createDependencyin interfaceClassDependencyFactory- Parameters:
context-ManagedFunctionContext.- Returns:
- Dependency.
- Throws:
java.lang.Throwable- If fails to create the dependency.
-
createDependency
public java.lang.Object createDependency(AdministrationContext<java.lang.Object,Indexed,Indexed> context) throws java.lang.Throwable
Description copied from interface:ClassDependencyFactoryCreates the dependency forAdministration.- Specified by:
createDependencyin interfaceClassDependencyFactory- Parameters:
context-AdministrationContext.- Returns:
- Dependency.
- Throws:
java.lang.Throwable- If fails to create the dependency.
-
-