public class ScriptFinder extends AbstractContextual
To accomplish this, we crawl the directories specified by
ScriptService.getScriptDirectories(). By default, those directories
include the scripts and plugins/Scripts folders off the
SciJava application's base directory.
| Constructor and Description |
|---|
ScriptFinder(Context context)
Creates a new script finder.
|
ScriptFinder(Context context,
String pathPrefix)
Creates a new script finder.
|
ScriptFinder(ScriptService scriptService)
Deprecated.
Use
ScriptFinder(Context) instead. |
| Modifier and Type | Method and Description |
|---|---|
void |
findScripts(List<ScriptInfo> scripts)
Discovers the scripts.
|
context, getContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetContextpublic ScriptFinder(Context context)
context - The SciJava application context housing needed services.public ScriptFinder(Context context, String pathPrefix)
context - The SciJava application context housing needed services.pathPrefix - the path prefix beneath which to scan classpath
resources, or null to skip classpath scanning.@Deprecated public ScriptFinder(ScriptService scriptService)
ScriptFinder(Context) instead.public void findScripts(List<ScriptInfo> scripts)
scripts - The collection to which the discovered scripts are added.Copyright © 2015–2022 SciJava. All rights reserved.