| static String | SCRIPTS_PATH_PROPERTY
System property for overriding the list of directories to scan for scripts.
|
| static String | SCRIPTS_RESOURCE_DIR
Base directory for discovering scripts, including within classpath
resources as well as beneath the application base directory.
|
| default void | addAlias(Class<?> type)
TODO
|
| void | addAlias(String alias,
Class<?> type)
TODO
|
| void | addScriptDirectory(File scriptDirectory)
Adds a base directory to scan for scripts.
|
| void | addScriptDirectory(File scriptDirectory,
MenuPath menuPrefix)
Adds a base directory to scan for scripts, placing discovered scripts
beneath the given menu path prefix.
|
| default boolean | canHandleFile(File file)
TODO
|
| default boolean | canHandleFile(String fileName)
TODO
|
| Map<String,Class<?>> | getAliases()
TODO
|
| ScriptLanguageIndex | getIndex()
Gets the index of available scripting languages.
|
| default ScriptLanguage | getLanguageByExtension(String extension)
Gets the scripting language that handles the given file extension.
|
| default ScriptLanguage | getLanguageByName(String name)
Gets the scripting language with the given name.
|
| default List<ScriptLanguage> | getLanguages()
Gets the available scripting languages.
|
| MenuPath | getMenuPrefix(File scriptDirectory)
Gets the menu path prefix for the given script directory, or null if none.
|
| default Class<ScriptLanguage> | getPluginType()
Gets the type of plugins managed by this service.
|
| ScriptInfo | getScript(File scriptFile)
Gets the cached ScriptInfo metadata for the script at the given
file, creating it if it does not already exist.
|
| List<File> | getScriptDirectories()
Gets the base directories to scan for scripts.
|
| Collection<ScriptInfo> | getScripts()
Gets all available scripts.
|
| Class<?> | lookupClass(String typeName)
TODO
|
| void | removeScriptDirectory(File scriptDirectory)
Removes a base directory to scan for scripts.
|
| Future<ScriptModule> | run(File file,
boolean process,
Map<String,Object> inputMap)
Executes the script in the given file.
|
| Future<ScriptModule> | run(File file,
boolean process,
Object... inputs)
Executes the script in the given file.
|
| Future<ScriptModule> | run(ScriptInfo info,
boolean process,
Map<String,Object> inputMap)
Executes the given script.
|
| Future<ScriptModule> | run(ScriptInfo info,
boolean process,
Object... inputs)
Executes the given script.
|
| default Future<ScriptModule> | run(String path,
Reader reader,
boolean process,
Map<String,Object> inputMap)
Executes the given script.
|
| default Future<ScriptModule> | run(String path,
Reader reader,
boolean process,
Object... inputs)
Executes the given script.
|
| default Future<ScriptModule> | run(String path,
String script,
boolean process,
Map<String,Object> inputMap)
Executes the given script.
|
| default Future<ScriptModule> | run(String path,
String script,
boolean process,
Object... inputs)
Executes the given script.
|
This method does the same thing as SingletonService.getInstances().
Copyright © 2015–2022 SciJava. All rights reserved.