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
SectionSource
implementation that wraps aManagedFunctionSource
to 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.String
PROPERTY_FUNCTIONS_NEXT_TO_OUTPUTS
Name of property specifying a comma separated list ofManagedFunction
names that will have aSectionOutput
created and linked as next.static java.lang.String
PROPERTY_PARAMETER_PREFIX
Name 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 void
loadSpecification(AbstractSectionSource.SpecificationContext context)
Loads theSectionSourceSpecification
.void
sourceSection(SectionDesigner designer, SectionSourceContext context)
Sources theOfficeSection
by 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 ofManagedFunction
names that will have aSectionOutput
created and linked as next.- See Also:
- Constant Field Values
-
-
Method Detail
-
loadSpecification
protected void loadSpecification(AbstractSectionSource.SpecificationContext context)
Description copied from class:AbstractSectionSource
Loads theSectionSourceSpecification
.- Specified by:
loadSpecification
in classAbstractSectionSource
- Parameters:
context
-AbstractSectionSource.SpecificationContext
.
-
sourceSection
public void sourceSection(SectionDesigner designer, SectionSourceContext context) throws java.lang.Exception
Description copied from interface:SectionSource
Sources theOfficeSection
by constructing it via the inputSectionDesigner
.- Parameters:
designer
-SectionDesigner
to construct the structure of theOfficeSection
.context
-SectionSourceContext
to source details to construct theOfficeSection
.- Throws:
java.lang.Exception
- If fails to construct theOfficeSection
.
-
-