public class ScriptEnvironment
extends java.lang.Object
Class managing environments for running various scripts and classes. Used by commands to configure and handle their classpath and property arguments.
Constructor and Description |
---|
ScriptEnvironment(net.sourceforge.argparse4j.inf.Namespace ns) |
Modifier and Type | Method and Description |
---|---|
static void |
configureArguments(net.sourceforge.argparse4j.inf.ArgumentParser parser) |
java.lang.ClassLoader |
getClassLoader()
Get the class loader for this script environment.
|
java.util.List<java.lang.String> |
getClasspath()
Get the classpath.
|
java.util.Properties |
getProperties()
Get the properties defined by the command line.
|
java.util.List<LenskitConfiguration> |
loadConfigurations(java.util.List<java.io.File> files) |
public ScriptEnvironment(net.sourceforge.argparse4j.inf.Namespace ns)
public static void configureArguments(net.sourceforge.argparse4j.inf.ArgumentParser parser)
public java.util.Properties getProperties()
Get the properties defined by the command line.
public java.util.List<java.lang.String> getClasspath()
Get the classpath.
public java.lang.ClassLoader getClassLoader()
Get the class loader for this script environment.
public java.util.List<LenskitConfiguration> loadConfigurations(java.util.List<java.io.File> files) throws java.io.IOException, RecommenderConfigurationException
java.io.IOException
RecommenderConfigurationException