Class ProcedureEmployer
- java.lang.Object
-
- net.officefloor.activity.procedure.build.ProcedureEmployer
-
public class ProcedureEmployer extends java.lang.Object
EmploysProcedureArchitect
.- 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 ProcedureLoader
employProcedureLoader(OfficeFloorCompiler compiler)
Creates theProcedureLoader
.static ProcedureLoader
employProcedureLoader(OfficeArchitect architect, OfficeSourceContext context)
Creates theProcedureLoader
.static ProcedureLoader
employProcedureLoader(SectionDesigner designer, SectionSourceContext context)
Creates theProcedureLoader
.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 listMethod
instances 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
Method
instances from aClass
.This handles not including
Object
methods.- Parameters:
clazz
-Class
to extractProcedure
names.exclude
-Predicate
to filter outMethod
instances. May benull
to 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
.
-
-