public class PropertiesConfigurationLoader extends AbstractConfigurationLoader implements SessionConfigurationLoader
| Constructor and Description |
|---|
PropertiesConfigurationLoader() |
| 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.
|
com.cyc.session.CycSessionConfiguration |
getSessionConfiguration(Properties prop) |
boolean |
isCapableOfSuccess()
Whether the SessionConfigurationLoader believes it has a chance of success.
|
protected boolean |
isValuePopulated(String value) |
getEnvironment, setEnvironment, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsetEnvironmentpublic static final String NAME
public String getName()
SessionConfigurationLoader
Names may only consist of alphanumeric character, underscores, and hyphens (i.e.,
/^[a-zA-Z0-9-_]+$/). Spaces are now allowed.
getName in interface SessionConfigurationLoaderpublic com.cyc.session.CycSessionConfiguration getConfiguration()
throws com.cyc.session.exception.SessionConfigurationException
SessionConfigurationLoader
Note that SessionConfigurationLoader.setEnvironment(com.cyc.session.EnvironmentConfiguration) must be called
sometime before calling this method.
getConfiguration in interface SessionConfigurationLoadercom.cyc.session.exception.SessionConfigurationException - if configuration parameters are obviously malformed.
However, the configuration loader may allow missing or empty parameters at its
discretion.public boolean isCapableOfSuccess()
SessionConfigurationLoaderfalse when being executed in a headless environment.isCapableOfSuccess in interface SessionConfigurationLoaderpublic com.cyc.session.CycSessionConfiguration getSessionConfiguration(Properties prop) throws com.cyc.session.exception.SessionConfigurationException
com.cyc.session.exception.SessionConfigurationExceptionprotected boolean isValuePopulated(String value)
Copyright © 2013–2018 Cycorp, Inc.. All rights reserved.