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
ClassDependencyManufacturer
forLogger
.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description LoggerClassDependencyManufacturer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
createDependency(AdministrationContext<java.lang.Object,Indexed,Indexed> context)
Creates the dependency forAdministration
.java.lang.Object
createDependency(ManagedFunctionContext<Indexed,Indexed> context)
Creates the dependency for aManagedFunction
.java.lang.Object
createDependency(ManagedObject managedObject, ManagedObjectContext context, ObjectRegistry<Indexed> registry)
Creates the dependency for aManagedObject
.ClassDependencyFactory
createParameterFactory(ClassDependencyManufacturerContext context)
Creates theClassDependencyFactory
for the particular dependency.ClassDependencyManufacturer
createService(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:ServiceFactory
Creates the service.- Specified by:
createService
in 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:ClassDependencyManufacturer
Creates the
ClassDependencyFactory
for the particular dependency.Should the
ClassDependencyManufacturer
not handled the dependency, it should returnnull
. This is because the firstClassDependencyManufacturer
providing aClassDependencyFactory
will be used.- Specified by:
createParameterFactory
in interfaceClassDependencyManufacturer
- Parameters:
context
-ClassDependencyManufacturerContext
.- Returns:
ClassDependencyFactory
ornull
if 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:ClassDependencyFactory
Creates the dependency for aManagedObject
.- Specified by:
createDependency
in 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:ClassDependencyFactory
Creates the dependency for aManagedFunction
.- Specified by:
createDependency
in 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:ClassDependencyFactory
Creates the dependency forAdministration
.- Specified by:
createDependency
in interfaceClassDependencyFactory
- Parameters:
context
-AdministrationContext
.- Returns:
- Dependency.
- Throws:
java.lang.Throwable
- If fails to create the dependency.
-
-