Class AbstractFunctionManagedFunctionSource
- java.lang.Object
-
- net.officefloor.compile.spi.managedfunction.source.impl.AbstractManagedFunctionSource
-
- net.officefloor.plugin.managedfunction.clazz.AbstractFunctionManagedFunctionSource
-
- All Implemented Interfaces:
ManagedFunctionSource
- Direct Known Subclasses:
ClassManagedFunctionSource
,SectionClassManagedFunctionSource
public abstract class AbstractFunctionManagedFunctionSource extends AbstractManagedFunctionSource
- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.officefloor.compile.spi.managedfunction.source.impl.AbstractManagedFunctionSource
AbstractManagedFunctionSource.SpecificationContext
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CLASS_NAME_PROPERTY_NAME
Property
name providing theClass
name.static java.lang.String
PROPERTY_FUNCTION_NAME
-
Constructor Summary
Constructors Constructor Description AbstractFunctionManagedFunctionSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MethodManagedFunctionBuilder
createMethodManagedFunctionBuilder(FunctionNamespaceBuilder namespaceBuilder, ManagedFunctionSourceContext context)
Creates theMethodManagedFunctionBuilder
.protected MethodManagedFunctionBuilder.MethodObjectInstanceManufacturer
createMethodObjectInstanceManufacturer(java.lang.Class<?> clazz)
protected void
loadSpecification(AbstractManagedFunctionSource.SpecificationContext context)
Loads theManagedFunctionSourceSpecification
.void
sourceManagedFunctions(FunctionNamespaceBuilder namespaceBuilder, ManagedFunctionSourceContext context)
Sources theFunctionNamespaceType
by populating it via the inputFunctionNamespaceBuilder
.-
Methods inherited from class net.officefloor.compile.spi.managedfunction.source.impl.AbstractManagedFunctionSource
getSpecification
-
-
-
-
Field Detail
-
CLASS_NAME_PROPERTY_NAME
public static final java.lang.String CLASS_NAME_PROPERTY_NAME
Property
name providing theClass
name.- See Also:
- Constant Field Values
-
PROPERTY_FUNCTION_NAME
public static final java.lang.String PROPERTY_FUNCTION_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
createMethodObjectInstanceManufacturer
protected MethodManagedFunctionBuilder.MethodObjectInstanceManufacturer createMethodObjectInstanceManufacturer(java.lang.Class<?> clazz) throws java.lang.Exception
- Parameters:
clazz
-Class
.- Returns:
MethodManagedFunctionBuilder.MethodObjectInstanceManufacturer
.- Throws:
java.lang.Exception
- If fails to createMethodManagedFunctionBuilder.MethodObjectInstanceManufacturer
.
-
createMethodManagedFunctionBuilder
protected MethodManagedFunctionBuilder createMethodManagedFunctionBuilder(FunctionNamespaceBuilder namespaceBuilder, ManagedFunctionSourceContext context) throws java.lang.Exception
Creates theMethodManagedFunctionBuilder
.- Parameters:
namespaceBuilder
-FunctionNamespaceBuilder
.context
-ManagedFunctionSourceContext
.- Returns:
MethodManagedFunctionBuilder
.- Throws:
java.lang.Exception
- If fails to createMethodManagedFunctionBuilder
.
-
loadSpecification
protected void loadSpecification(AbstractManagedFunctionSource.SpecificationContext context)
Description copied from class:AbstractManagedFunctionSource
Loads theManagedFunctionSourceSpecification
.- Specified by:
loadSpecification
in classAbstractManagedFunctionSource
- Parameters:
context
-AbstractManagedFunctionSource.SpecificationContext
.
-
sourceManagedFunctions
public void sourceManagedFunctions(FunctionNamespaceBuilder namespaceBuilder, ManagedFunctionSourceContext context) throws java.lang.Exception
Description copied from interface:ManagedFunctionSource
Sources theFunctionNamespaceType
by populating it via the inputFunctionNamespaceBuilder
.- Parameters:
namespaceBuilder
-FunctionNamespaceBuilder
to be populated with thetype definition
of theManagedFunctionSource
.context
-ManagedFunctionSourceContext
to source details to populate theFunctionNamespaceBuilder
.- Throws:
java.lang.Exception
- If fails to populate theFunctionNamespaceBuilder
.
-
-