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.StringCLASS_NAME_PROPERTY_NAMEPropertyname providing theClassname.static java.lang.StringPROPERTY_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 voidloadSpecification(AbstractManagedFunctionSource.SpecificationContext context)Loads theManagedFunctionSourceSpecification.voidsourceManagedFunctions(FunctionNamespaceBuilder namespaceBuilder, ManagedFunctionSourceContext context)Sources theFunctionNamespaceTypeby 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
Propertyname providing theClassname.- 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-Classof object to invokeMethodagainst.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:AbstractManagedFunctionSourceLoads theManagedFunctionSourceSpecification.- Specified by:
loadSpecificationin classAbstractManagedFunctionSource- Parameters:
context-AbstractManagedFunctionSource.SpecificationContext.
-
sourceManagedFunctions
public void sourceManagedFunctions(FunctionNamespaceBuilder namespaceBuilder, ManagedFunctionSourceContext context) throws java.lang.Exception
Description copied from interface:ManagedFunctionSourceSources theFunctionNamespaceTypeby populating it via the inputFunctionNamespaceBuilder.- Parameters:
namespaceBuilder-FunctionNamespaceBuilderto be populated with thetype definitionof theManagedFunctionSource.context-ManagedFunctionSourceContextto source details to populate theFunctionNamespaceBuilder.- Throws:
java.lang.Exception- If fails to populate theFunctionNamespaceBuilder.
-
-