Class ProcedureEmployer
- java.lang.Object
-
- net.officefloor.activity.procedure.build.ProcedureEmployer
-
public class ProcedureEmployer extends java.lang.ObjectEmploysProcedureArchitect.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ProcedureEmployer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ProcedureArchitect<OfficeSection>employProcedureArchitect(OfficeArchitect officeArchitect, OfficeSourceContext officeSourceContext)Employs theProcedureArchitect.static ProcedureArchitect<SubSection>employProcedureDesigner(SectionDesigner sectionDesigner, SectionSourceContext sectionSourceContext)Employs theProcedureArchitect.static ProcedureLoaderemployProcedureLoader(OfficeFloorCompiler compiler)Creates theProcedureLoader.static ProcedureLoaderemployProcedureLoader(OfficeArchitect architect, OfficeSourceContext context)Creates theProcedureLoader.static ProcedureLoaderemployProcedureLoader(SectionDesigner designer, SectionSourceContext context)Creates theProcedureLoader.static voidlistMethods(java.lang.Class<?> clazz, java.util.function.Predicate<java.lang.reflect.Method> exclude, java.util.function.Consumer<java.lang.reflect.Method> handler)Convenience method to listMethodinstances from aClass.
-
-
-
Method Detail
-
listMethods
public static void listMethods(java.lang.Class<?> clazz, java.util.function.Predicate<java.lang.reflect.Method> exclude, java.util.function.Consumer<java.lang.reflect.Method> handler)Convenience method to list
Methodinstances from aClass.This handles not including
Objectmethods.- Parameters:
clazz-Classto extractProcedurenames.exclude-Predicateto filter outMethodinstances. May benullto include all.handler- Handler for the candidateMethod.
-
employProcedureLoader
public static ProcedureLoader employProcedureLoader(OfficeFloorCompiler compiler) throws java.lang.Exception
Creates theProcedureLoader.- Parameters:
compiler-OfficeFloorCompiler.- Returns:
ProcedureLoader.- Throws:
java.lang.Exception- If fails to createProcedureLoader.
-
employProcedureLoader
public static ProcedureLoader employProcedureLoader(OfficeArchitect architect, OfficeSourceContext context) throws java.lang.Exception
Creates theProcedureLoader.- Parameters:
architect-OfficeArchitect.context-OfficeSourceContext.- Returns:
ProcedureLoader.- Throws:
java.lang.Exception- If fails to createProcedureLoader.
-
employProcedureLoader
public static ProcedureLoader employProcedureLoader(SectionDesigner designer, SectionSourceContext context) throws java.lang.Exception
Creates theProcedureLoader.- Parameters:
designer-SectionDesigner.context-SectionSourceContext.- Returns:
ProcedureLoader.- Throws:
java.lang.Exception- If fails to createProcedureLoader.
-
employProcedureArchitect
public static ProcedureArchitect<OfficeSection> employProcedureArchitect(OfficeArchitect officeArchitect, OfficeSourceContext officeSourceContext)
Employs theProcedureArchitect.- Parameters:
officeArchitect-OfficeArchitect.officeSourceContext-OfficeSourceContext.- Returns:
ProcedureArchitect.
-
employProcedureDesigner
public static ProcedureArchitect<SubSection> employProcedureDesigner(SectionDesigner sectionDesigner, SectionSourceContext sectionSourceContext)
Employs theProcedureArchitect.- Parameters:
sectionDesigner-SectionDesigner.sectionSourceContext-SectionSourceContext.- Returns:
ProcedureArchitect.
-
-