Class JavaScriptFunctionSectionSource
- java.lang.Object
-
- net.officefloor.compile.spi.section.source.impl.AbstractSectionSource
-
- net.officefloor.plugin.section.clazz.AbstractFunctionSectionSource
-
- net.officefloor.polyglot.script.AbstractScriptFunctionSectionSource
-
- net.officefloor.polyglot.javascript.JavaScriptFunctionSectionSource
-
- All Implemented Interfaces:
SectionSource
public class JavaScriptFunctionSectionSource extends AbstractScriptFunctionSectionSource
JavaScript functionSectionSource
.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.officefloor.polyglot.script.AbstractScriptFunctionSectionSource
AbstractScriptFunctionSectionSource.ScriptSection
-
Nested classes/interfaces inherited from class net.officefloor.plugin.section.clazz.AbstractFunctionSectionSource
AbstractFunctionSectionSource.ObjectForMethod
-
Nested classes/interfaces inherited from class net.officefloor.compile.spi.section.source.impl.AbstractSectionSource
AbstractSectionSource.SpecificationContext
-
-
Field Summary
-
Fields inherited from class net.officefloor.polyglot.script.AbstractScriptFunctionSectionSource
PROPERTY_ENGINE_NAME, PROPERTY_FUNCTION_NAME
-
Fields inherited from class net.officefloor.plugin.section.clazz.AbstractFunctionSectionSource
CLASS_OBJECT_NAME
-
-
Constructor Summary
Constructors Constructor Description JavaScriptFunctionSectionSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
getMetaDataScriptPath(SourceContext context)
Obtains the path to the script that extracts the function meta-data.protected java.lang.String
getScriptEngineName(SourceContext context)
Obtains the name of theScriptEngine
.protected ScriptExceptionTranslator
getScriptExceptionTranslator()
Obtains theScriptExceptionTranslator
.-
Methods inherited from class net.officefloor.polyglot.script.AbstractScriptFunctionSectionSource
adddSectionFunctionNamespace, getSectionClass, getSetupScriptPath, loadFunctionNamespaceType, loadObjectForMethod
-
Methods inherited from class net.officefloor.plugin.section.clazz.AbstractFunctionSectionSource
createClassManagedObject, enrichFunction, extractClassManagedObjectDependencies, getContext, getDesigner, getFunctionByName, getFunctionByTypeName, getFunctionName, getFunctionTypeByName, getManagedObject, getOrCreateInput, getOrCreateObject, getOrCreateOutput, getOrCreateSubSection, getSectionClassName, isIncludeManagedFunctionType, linkFunctionEscalation, linkFunctionFlow, linkFunctionFlow, linkFunctionObject, linkNextFunction, loadSpecification, registerFunctionByTypeName, sourceSection
-
Methods inherited from class net.officefloor.compile.spi.section.source.impl.AbstractSectionSource
getSpecification
-
-
-
-
Method Detail
-
getScriptEngineName
protected java.lang.String getScriptEngineName(SourceContext context) throws java.lang.Exception
Description copied from class:AbstractScriptFunctionSectionSource
Obtains the name of theScriptEngine
.- Specified by:
getScriptEngineName
in classAbstractScriptFunctionSectionSource
- Parameters:
context
-SourceContext
.- Returns:
- Name of the
ScriptEngine
. - Throws:
java.lang.Exception
- If fails to obtain the name of theScriptEngine
.
-
getMetaDataScriptPath
protected java.lang.String getMetaDataScriptPath(SourceContext context) throws java.lang.Exception
Description copied from class:AbstractScriptFunctionSectionSource
Obtains the path to the script that extracts the function meta-data.- Specified by:
getMetaDataScriptPath
in classAbstractScriptFunctionSectionSource
- Parameters:
context
-SourceContext
.- Returns:
- Path to the script that extracts the function meta-data.
- Throws:
java.lang.Exception
- If fails to obtain the path to the function meta-data script.
-
getScriptExceptionTranslator
protected ScriptExceptionTranslator getScriptExceptionTranslator()
Description copied from class:AbstractScriptFunctionSectionSource
Obtains theScriptExceptionTranslator
.- Overrides:
getScriptExceptionTranslator
in classAbstractScriptFunctionSectionSource
- Returns:
ScriptExceptionTranslator
.
-
-