|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.foray.app.Options
public class Options
Loads configuration files and additional setting of commandline options.
| Constructor Summary | |
|---|---|
Options(SessionConfig sessionConfig,
OutputConfig renderConfig)
Constructor for case when the user configuration file is not known. |
|
Options(SessionConfig sessionConfig,
OutputConfig renderConfig,
URL userConfigFile)
Constructor for case when the user configuration file is known. |
|
| Method Summary | |
|---|---|
SessionConfig |
getSessionConfig()
Returns the session configuration. |
void |
loadUserconfiguration(InputSource userConfigSource)
Loades a user configuration from an InputSource. |
void |
loadUserconfiguration(URL userConfigFile)
Loads a user configuration from a URL. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Options(SessionConfig sessionConfig,
OutputConfig renderConfig)
sessionConfig - The session configuration.renderConfig - The output configuration.
public Options(SessionConfig sessionConfig,
OutputConfig renderConfig,
URL userConfigFile)
throws FOrayException
sessionConfig - The session configuration.renderConfig - The output configuration.userConfigFile - The user configuration to be processed.
FOrayException - For errors during construction.| Method Detail |
|---|
public void loadUserconfiguration(URL userConfigFile)
throws FOrayException
userConfigFile - The URL to be loaded.
FOrayException - If the URL cannot be accessed, or if there are
errors loading it.
public void loadUserconfiguration(InputSource userConfigSource)
throws FOrayException
userConfigSource - The input source to be processed.
FOrayException - For errors processing the configuration.public SessionConfig getSessionConfig()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||