Class FlowClassDependencyManufacturer
java.lang.Object
net.officefloor.plugin.clazz.dependency.impl.AbstractFlowClassDependencyManufacturer
net.officefloor.plugin.clazz.dependency.impl.FlowClassDependencyManufacturer
- All Implemented Interfaces:
ServiceFactory<ClassDependencyManufacturer>,ClassDependencyManufacturer,ClassDependencyManufacturerServiceFactory
ClassDependencyManufacturerContext implementation for flows.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates theClassDependencyFactoryfor the particular dependency.protected Class<? extends Annotation>Obtains theAnnotationtype.protected StringgetFlowName(Annotation annotation, ClassDependencyManufacturerContext context) Obtains the name of theFlow.Methods inherited from class net.officefloor.plugin.clazz.dependency.impl.AbstractFlowClassDependencyManufacturer
addFlow, buildFlow, createService
-
Constructor Details
-
FlowClassDependencyManufacturer
public FlowClassDependencyManufacturer()
-
-
Method Details
-
getFlowName
Obtains the name of theFlow.- Parameters:
annotation-Annotation.context-ClassDependencyManufacturerContext.- Returns:
- Name of the
Flow.
-
getAnnotationType
Description copied from class:AbstractFlowClassDependencyManufacturerObtains theAnnotationtype.- Specified by:
getAnnotationTypein classAbstractFlowClassDependencyManufacturer- Returns:
Annotationtype.
-
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- Overrides:
createParameterFactoryin classAbstractFlowClassDependencyManufacturer- Parameters:
context-ClassDependencyManufacturerContext.- Returns:
ClassDependencyFactoryornullif not able to handle dependency.- Throws:
Exception- If fails to create theClassDependencyFactory.
-