Class AbstractFlowClassDependencyManufacturer
- java.lang.Object
- 
- net.officefloor.plugin.clazz.dependency.impl.AbstractFlowClassDependencyManufacturer
 
- 
- All Implemented Interfaces:
- ServiceFactory<ClassDependencyManufacturer>,- ClassDependencyManufacturer,- ClassDependencyManufacturerServiceFactory
 - Direct Known Subclasses:
- FlowInterfaceClassDependencyManufacturer,- SectionInterfaceClassDependencyManufacturer
 
 public abstract class AbstractFlowClassDependencyManufacturer extends java.lang.Object implements ClassDependencyManufacturer, ClassDependencyManufacturerServiceFactory ClassDependencyManufacturerfor providingFlowinvocations.- Author:
- Daniel Sagenschneider
 
- 
- 
Constructor SummaryConstructors Constructor Description AbstractFlowClassDependencyManufacturer()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected ClassDependencyManufacturerContext.ClassFlowaddFlow(ClassDependencyManufacturerContext dependencyContext, ClassFlowContext flowContext)Adds aFlow.protected intbuildFlow(ClassDependencyManufacturerContext.ClassFlow classFlow, ClassFlowContext flowContext)Builds theFlowClassDependencyFactorycreateParameterFactory(ClassDependencyManufacturerContext context)Creates theClassDependencyFactoryfor the particular dependency.ClassDependencyManufacturercreateService(ServiceContext context)Creates the service.protected abstract java.lang.Class<? extends java.lang.annotation.Annotation>getAnnotationType()Obtains theAnnotationtype.
 
- 
- 
- 
Method Detail- 
getAnnotationTypeprotected abstract java.lang.Class<? extends java.lang.annotation.Annotation> getAnnotationType() Obtains theAnnotationtype.- Returns:
- Annotationtype.
 
 - 
addFlowprotected ClassDependencyManufacturerContext.ClassFlow addFlow(ClassDependencyManufacturerContext dependencyContext, ClassFlowContext flowContext) Adds aFlow.- Parameters:
- dependencyContext-- ClassDependencyManufacturerContext.
- flowContext-- ClassFlowContext.
- Returns:
- ClassDependencyManufacturerContext.ClassFlow.
 
 - 
buildFlowprotected int buildFlow(ClassDependencyManufacturerContext.ClassFlow classFlow, ClassFlowContext flowContext) Builds theFlow- Parameters:
- classFlow-- ClassDependencyManufacturerContext.ClassFlow.
- flowContext-- ClassFlowContext.
- Returns:
- Index of the Flow.
 
 - 
createServicepublic ClassDependencyManufacturer createService(ServiceContext context) throws java.lang.Throwable Description copied from interface:ServiceFactoryCreates the service.- Specified by:
- createServicein interface- ServiceFactory<ClassDependencyManufacturer>
- Parameters:
- context-- ServiceContext.
- Returns:
- Service.
- Throws:
- java.lang.Throwable- If fails to create the service.
 
 - 
createParameterFactorypublic 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 interface- ClassDependencyManufacturer
- Parameters:
- context-- ClassDependencyManufacturerContext.
- Returns:
- ClassDependencyFactoryor- nullif not able to handle dependency.
- Throws:
- java.lang.Exception- If fails to create the- ClassDependencyFactory.
 
 
- 
 
-