Class AbstractScriptExecutor
java.lang.Object
org.eclipse.dirigible.engine.api.resource.AbstractResourceExecutor
org.eclipse.dirigible.engine.api.script.AbstractScriptExecutor
- All Implemented Interfaces:
IEngineExecutor,IResourceExecutor,IScriptEngineExecutor
public abstract class AbstractScriptExecutor extends AbstractResourceExecutor implements IScriptEngineExecutor
The Abstract Script Executor.
-
Constructor Summary
Constructors Constructor Description AbstractScriptExecutor() -
Method Summary
Modifier and Type Method Description booleanexistsModule(String root, String module)Exists module.booleanexistsModule(String root, String module, String extension)Exists module.static ResourcePathgenerateResourcePath(String module, String[] moduleExtensions)Generate resource path.protected ResourcePathgetResourcePath(String module, String... moduleExtensions)Gets the resource path.ModuleretrieveModule(String root, String module)Retrieve module.ModuleretrieveModule(String root, String module, String extension)Retrieve module.Methods inherited from class org.eclipse.dirigible.engine.api.resource.AbstractResourceExecutor
createResourcePath, createResourcePath, existResource, existResource, getCollection, getLoadedPredeliveredContent, getRepository, getResource, getResource, getResourceContent, getResourceContentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.dirigible.engine.api.script.IScriptEngineExecutor
evalCode, evalModule, executeMethodFromModule, executeServiceCode, executeServiceModule
-
Constructor Details
-
AbstractScriptExecutor
public AbstractScriptExecutor()
-
-
Method Details
-
retrieveModule
Retrieve module.- Specified by:
retrieveModulein interfaceIScriptEngineExecutor- Parameters:
root- the rootmodule- the module- Returns:
- the module
- Throws:
RepositoryException- the repository exception
-
retrieveModule
public Module retrieveModule(String root, String module, String extension) throws RepositoryExceptionRetrieve module.- Specified by:
retrieveModulein interfaceIScriptEngineExecutor- Parameters:
root- the rootmodule- the moduleextension- the extension- Returns:
- the module
- Throws:
RepositoryException- the repository exception
-
getResourcePath
Gets the resource path.- Parameters:
module- the modulemoduleExtensions- the module extensions- Returns:
- the resource path
-
generateResourcePath
Generate resource path.- Parameters:
module- the modulemoduleExtensions- the module extensions- Returns:
- the resource path
-
existsModule
Exists module.- Specified by:
existsModulein interfaceIScriptEngineExecutor- Parameters:
root- the root pathmodule- the module path- Returns:
- true if module exists
- Throws:
RepositoryException- the repository exception
-
existsModule
public boolean existsModule(String root, String module, String extension) throws RepositoryExceptionExists module.- Specified by:
existsModulein interfaceIScriptEngineExecutor- Parameters:
root- the root pathmodule- the module pathextension- the extension or null- Returns:
- true if module exists
- Throws:
RepositoryException- the repository exception
-