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 Summary
Constructors Constructor Description AbstractFlowClassDependencyManufacturer()
-
Method Summary
All 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
-
getAnnotationType
protected abstract java.lang.Class<? extends java.lang.annotation.Annotation> getAnnotationType()
Obtains theAnnotationtype.- Returns:
Annotationtype.
-
addFlow
protected ClassDependencyManufacturerContext.ClassFlow addFlow(ClassDependencyManufacturerContext dependencyContext, ClassFlowContext flowContext)
Adds aFlow.- Parameters:
dependencyContext-ClassDependencyManufacturerContext.flowContext-ClassFlowContext.- Returns:
ClassDependencyManufacturerContext.ClassFlow.
-
buildFlow
protected int buildFlow(ClassDependencyManufacturerContext.ClassFlow classFlow, ClassFlowContext flowContext)
Builds theFlow- Parameters:
classFlow-ClassDependencyManufacturerContext.ClassFlow.flowContext-ClassFlowContext.- Returns:
- Index of the
Flow.
-
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.
-
-