Class ManagedFunctionSectionSource
- java.lang.Object
-
- net.officefloor.compile.spi.section.source.impl.AbstractSectionSource
-
- net.officefloor.plugin.section.managedfunction.ManagedFunctionSectionSource
-
- All Implemented Interfaces:
SectionSource
public class ManagedFunctionSectionSource extends AbstractSectionSource
SectionSourceimplementation that wraps aManagedFunctionSourceto expose it as a section.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.officefloor.compile.spi.section.source.impl.AbstractSectionSource
AbstractSectionSource.SpecificationContext
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPROPERTY_FUNCTIONS_NEXT_TO_OUTPUTSName of property specifying a comma separated list ofManagedFunctionnames that will have aSectionOutputcreated and linked as next.static java.lang.StringPROPERTY_PARAMETER_PREFIXName of property prefix to specify the index of the parameter on theManagedFunction.
-
Constructor Summary
Constructors Constructor Description ManagedFunctionSectionSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidloadSpecification(AbstractSectionSource.SpecificationContext context)Loads theSectionSourceSpecification.voidsourceSection(SectionDesigner designer, SectionSourceContext context)Sources theOfficeSectionby constructing it via the inputSectionDesigner.-
Methods inherited from class net.officefloor.compile.spi.section.source.impl.AbstractSectionSource
getSpecification
-
-
-
-
Field Detail
-
PROPERTY_PARAMETER_PREFIX
public static final java.lang.String PROPERTY_PARAMETER_PREFIX
Name of property prefix to specify the index of the parameter on theManagedFunction. The resulting parameter name and value are as:PROPERTY_PARAMETER_PREFIX + "FunctionName" = "index in objects for the parameter (starting at 1)"- See Also:
- Constant Field Values
-
PROPERTY_FUNCTIONS_NEXT_TO_OUTPUTS
public static final java.lang.String PROPERTY_FUNCTIONS_NEXT_TO_OUTPUTS
Name of property specifying a comma separated list ofManagedFunctionnames that will have aSectionOutputcreated and linked as next.- See Also:
- Constant Field Values
-
-
Method Detail
-
loadSpecification
protected void loadSpecification(AbstractSectionSource.SpecificationContext context)
Description copied from class:AbstractSectionSourceLoads theSectionSourceSpecification.- Specified by:
loadSpecificationin classAbstractSectionSource- Parameters:
context-AbstractSectionSource.SpecificationContext.
-
sourceSection
public void sourceSection(SectionDesigner designer, SectionSourceContext context) throws java.lang.Exception
Description copied from interface:SectionSourceSources theOfficeSectionby constructing it via the inputSectionDesigner.- Parameters:
designer-SectionDesignerto construct the structure of theOfficeSection.context-SectionSourceContextto source details to construct theOfficeSection.- Throws:
java.lang.Exception- If fails to construct theOfficeSection.
-
-