Class AbstractFunctionManagedFunctionSource
- java.lang.Object
-
- net.officefloor.compile.spi.managedfunction.source.impl.AbstractManagedFunctionSource
-
- net.officefloor.plugin.clazz.method.AbstractFunctionManagedFunctionSource
-
- All Implemented Interfaces:
ManagedFunctionSource
- Direct Known Subclasses:
ClassManagedFunctionSource
,ClassSectionSource.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 ManagedFunctionTypeBuilder<Indexed,Indexed>
buildMethod(java.lang.Class<?> clazz, java.lang.reflect.Method method, MethodManagedFunctionBuilder managedFunctionBuilder)
Builds theMethod
.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
-
buildMethod
protected ManagedFunctionTypeBuilder<Indexed,Indexed> buildMethod(java.lang.Class<?> clazz, java.lang.reflect.Method method, MethodManagedFunctionBuilder managedFunctionBuilder) throws java.lang.Exception
Builds theMethod
.- Parameters:
clazz
-Class
of object to invokeMethod
against.method
-Method
.managedFunctionBuilder
-MethodManagedFunctionBuilder
.- Returns:
ManagedFunctionTypeBuilder
.- Throws:
java.lang.Exception
- If fails to build theMethod
.
-
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
.
-
-