public interface SessionConfigurationLoader
CycSessionConfigurations. Implementations
may load configuration from System properties, Properties files, interactive dialogs, etc.| Modifier and Type | Method and Description |
|---|---|
com.cyc.session.CycSessionConfiguration |
getConfiguration()
Returns a new CycSessionConfiguration.
|
String |
getName()
The convenience name of this implementation, making it easier to specify a particular
configuration loader in System properties (or properties files, or whatever.) This name may be
almost anything, but should be reasonably descriptive: "interactive," "default-properties,"
etc.
|
boolean |
isCapableOfSuccess()
Whether the SessionConfigurationLoader believes it has a chance of success.
|
void |
setEnvironment(EnvironmentConfiguration config)
Passes an EnvironmentConfiguration to the configuration loader.
|
String getName()
Names may only consist of alphanumeric character, underscores, and hyphens (i.e.,
/^[a-zA-Z0-9-_]+$/). Spaces are now allowed.
com.cyc.session.CycSessionConfiguration getConfiguration()
throws com.cyc.session.exception.SessionConfigurationException
Note that setEnvironment(com.cyc.session.EnvironmentConfiguration) must be called
sometime before calling this method.
com.cyc.session.exception.SessionConfigurationException - if configuration parameters are obviously malformed.
However, the configuration loader may allow missing or empty parameters at its
discretion.void setEnvironment(EnvironmentConfiguration config)
config - boolean isCapableOfSuccess()
false when being executed in a headless environment.Copyright © 2013–2019 Cycorp, Inc.. All rights reserved.