public abstract class AbstractScriptFunctionType<T extends GeneralScriptFunction> extends AbstractFunctionType<T>
Modifier and Type | Field and Description |
---|---|
protected ch.exense.commons.app.Configuration |
configuration |
protected step.grid.filemanager.FileVersionId |
daemonJar |
static Map<String,String> |
fileExtensionMap |
fileResolver, fileResolverCache, functionTypeConfiguration, gridFileServices
Constructor and Description |
---|
AbstractScriptFunctionType(ch.exense.commons.app.Configuration configuration) |
Modifier and Type | Method and Description |
---|---|
protected void |
addPluginLibsIfRequired(String scriptLanguage,
Map<String,String> props) |
T |
copyFunction(T function) |
protected File |
getDefaultScriptFile(GeneralScriptFunction function,
String scriptDir) |
String |
getHandlerChain(GeneralScriptFunction function) |
step.grid.filemanager.FileVersionId |
getHandlerPackage(GeneralScriptFunction function) |
Map<String,String> |
getHandlerProperties(T function) |
File |
getScriptFile(T function) |
protected String |
getScriptLanguage(GeneralScriptFunction conf) |
void |
init() |
protected File |
setupScriptFile(GeneralScriptFunction function,
InputStream templateStream) |
protected File |
setupScriptFile(GeneralScriptFunction function,
InputStream templateStream,
String scriptDir) |
protected File |
setupScriptFile(GeneralScriptFunction function,
String templateFilename) |
beforeFunctionCall, deleteFunction, getTokenSelectionCriteria, newFunction, registerFile, registerFile, registerFile, registerFile, registerResource, setFileResolver, setFunctionTypeConfiguration, setGridFileServices, setupFunction, updateFunction
protected step.grid.filemanager.FileVersionId daemonJar
protected ch.exense.commons.app.Configuration configuration
public AbstractScriptFunctionType(ch.exense.commons.app.Configuration configuration)
public void init()
init
in class AbstractFunctionType<T extends GeneralScriptFunction>
public Map<String,String> getHandlerProperties(T function)
getHandlerProperties
in class AbstractFunctionType<T extends GeneralScriptFunction>
protected void addPluginLibsIfRequired(String scriptLanguage, Map<String,String> props)
public String getHandlerChain(GeneralScriptFunction function)
getHandlerChain
in class AbstractFunctionType<T extends GeneralScriptFunction>
public step.grid.filemanager.FileVersionId getHandlerPackage(GeneralScriptFunction function)
getHandlerPackage
in class AbstractFunctionType<T extends GeneralScriptFunction>
protected File getDefaultScriptFile(GeneralScriptFunction function, String scriptDir)
protected String getScriptLanguage(GeneralScriptFunction conf)
protected File setupScriptFile(GeneralScriptFunction function, String templateFilename) throws SetupFunctionException
SetupFunctionException
protected File setupScriptFile(GeneralScriptFunction function, InputStream templateStream) throws SetupFunctionException
SetupFunctionException
protected File setupScriptFile(GeneralScriptFunction function, InputStream templateStream, String scriptDir) throws SetupFunctionException
SetupFunctionException
public T copyFunction(T function) throws FunctionTypeException
copyFunction
in class AbstractFunctionType<T extends GeneralScriptFunction>
FunctionTypeException
Copyright © 2020. All rights reserved.