Package com.tagtraum.core.app
Class ScriptPluginLoader<A extends ApplicationComponent>
- java.lang.Object
-
- com.tagtraum.core.app.ScriptPluginLoader<A>
-
public class ScriptPluginLoader<A extends ApplicationComponent> extends Object
Script loader (mainly for beaTlets).- Author:
- Hendrik Schreiber
-
-
Constructor Summary
Constructors Constructor Description ScriptPluginLoader(PluginManager<A> pluginManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Exception
getLoadException(Path file)
Collection<Exception>
getLoadExceptions()
void
load(Path scriptDir, ClassLoader classLoader)
Loads all scripts from the given directory and registers them with thePluginManager
.
-
-
-
Constructor Detail
-
ScriptPluginLoader
public ScriptPluginLoader(PluginManager<A> pluginManager)
-
-
Method Detail
-
getLoadExceptions
public Collection<Exception> getLoadExceptions()
-
load
public void load(Path scriptDir, ClassLoader classLoader) throws IOException
Loads all scripts from the given directory and registers them with thePluginManager
.- Parameters:
scriptDir
- script dirclassLoader
- classLoader- Throws:
IOException
- if we cannot list the script files
-
-