|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Configuration
Configuration interface, to be implemented by classes wanting to configure a MillScript engine.
| Field Summary | |
|---|---|
static java.lang.String |
CACHE_NAME
Cache folder name. |
static java.lang.String |
CONF_NAME
Configuration folder name. |
static java.lang.String |
DOT_WEBSITE_NAME
Hidden website identification folder name. |
static java.lang.String |
INVENTORY_NAME
Inventory folder name. |
static java.lang.String |
LIB_NAME
Library folder name. |
static java.lang.String |
OUTPUT_NAME
Output folder name. |
static java.lang.String |
PACKAGE_CONF_FILE
Package configuration file name. |
static java.lang.String |
USER_CONF_FILE
User configuration file name. |
static java.lang.String |
VAR_NAME
Var folder name. |
static java.lang.String |
WEBSITE_CONF_FILE
Website configuration file name. |
static java.lang.String |
WEBSITE_FAILURE_FILE
Website failure file name. |
static java.lang.String |
WEBSITE_LOCK_FILE
Website lock file name. |
static java.lang.String |
WEBSITE_SUCCESSS_FILE
Website sucess file name. |
| Method Summary | |
|---|---|
boolean |
getBooleanProperty(java.lang.String key)
Returns the boolean configuration value associated with the specified key. |
org.millscript.commons.vfs.VFolder |
getCurrentWorkingFolder()
Returns the current working folder. |
CharacterEntity |
getHTMLCharacterEntity()
Returns the HTML character entity encoder/decoder object. |
java.lang.String |
getInteractivePrompt()
Returns the prompt MillScript should use during a session. |
LoaderBuilder |
getLoaderBuilder()
Returns the LoaderBuilder for this configuration. |
Logger |
getLogger()
Returns the logger for this configuration. |
java.nio.charset.Charset |
getOutputCharset()
Returns the current output character set. |
org.millscript.commons.vfs.VFile |
getPackageConfFile(org.millscript.commons.vfs.VFolder packageDir)
Returns the location of the package configuration file for the specified package location. |
java.lang.String |
getProperty(java.lang.String key)
Returns the configuration value associated with the specified key. |
org.millscript.commons.vfs.VFolder |
getStandardConfFolder()
Returns the location of the standard configuration folder. |
org.millscript.commons.vfs.VFile |
getStandardConfigurationFile()
Returns the location of the user configuration file. |
Engine |
getStandardEngine()
Returns the standard engine for this configuration. |
org.millscript.commons.vfs.VFolder |
getStandardInventoryFolder()
Returns the location of the standard inventory. |
org.millscript.commons.vfs.VFolder |
getStandardLibFolder()
Returns the location of the standard library folder. |
Package |
getStandardPackage(Engine engine)
Returns the standard package for this configuration. |
org.millscript.commons.vfs.VFS |
getVFS()
Returns the VFS this configuration is using. |
org.millscript.commons.vfs.VFolder |
getWebsiteCacheFolder()
Returns the location of the websites cache folder. |
org.millscript.commons.vfs.VFolder |
getWebsiteConfFolder()
Returns the location of the websites configuration folder. |
org.millscript.commons.vfs.VFile |
getWebsiteConfigurationFile()
Returns the location of the website configuration file. |
org.millscript.commons.vfs.VFile |
getWebsiteFailureFile()
Returns the location of the website lock file. |
org.millscript.commons.vfs.VFolder |
getWebsiteInventoryFolder()
Returns the location of the websites inventory. |
org.millscript.commons.vfs.VFolder |
getWebsiteLibFolder()
Returns the location of the websites library folder. |
org.millscript.commons.vfs.VFile |
getWebsiteLockFile()
Returns the location of the website lock file. |
org.millscript.commons.vfs.VFolder |
getWebsiteOutputFolder()
Returns the location of the websites output folder. |
org.millscript.commons.vfs.VFile |
getWebsiteSuccessFile()
Returns the location of the website success file. |
org.millscript.commons.vfs.VFolder |
getWebsiteVarFolder()
Returns the location of the websites var folder. |
CharacterEntity |
getXMLCharacterEntity()
Returns the XML character entity encoder/decoder object. |
void |
reportAlertAsMishap(org.millscript.commons.alert.Alert alert)
Reports the specified Alert as a mishap. |
void |
reportAlertAsWarning(org.millscript.commons.alert.Alert alert)
Reports the specified Alert as a warning. |
void |
reportException(java.lang.Exception exception)
Reports the specified Exception. |
void |
setLogger(Logger logger)
Sets the logger for this configuration. |
void |
setOutputCharset(java.nio.charset.Charset cs)
Sets the output character set. |
void |
setProperty(java.lang.String key,
java.lang.Object value)
Associated the configuration value with the specified key. |
| Field Detail |
|---|
static final java.lang.String CACHE_NAME
static final java.lang.String CONF_NAME
static final java.lang.String DOT_WEBSITE_NAME
static final java.lang.String USER_CONF_FILE
static final java.lang.String INVENTORY_NAME
static final java.lang.String LIB_NAME
static final java.lang.String OUTPUT_NAME
static final java.lang.String PACKAGE_CONF_FILE
static final java.lang.String VAR_NAME
static final java.lang.String WEBSITE_CONF_FILE
static final java.lang.String WEBSITE_FAILURE_FILE
static final java.lang.String WEBSITE_LOCK_FILE
static final java.lang.String WEBSITE_SUCCESSS_FILE
| Method Detail |
|---|
boolean getBooleanProperty(java.lang.String key)
key - the key to retrieve a value for
CharacterEntity getHTMLCharacterEntity()
CharacterEntity getXMLCharacterEntity()
org.millscript.commons.vfs.VFolder getCurrentWorkingFolder()
java.lang.String getInteractivePrompt()
null for an batch session and whatever string the user
desires for an interactive session.
LoaderBuilder getLoaderBuilder()
Logger getLogger()
java.nio.charset.Charset getOutputCharset()
org.millscript.commons.vfs.VFile getPackageConfFile(org.millscript.commons.vfs.VFolder packageDir)
packageDir - the location of a package
java.lang.String getProperty(java.lang.String key)
key - the key to retrieve a value for
org.millscript.commons.vfs.VFolder getStandardConfFolder()
org.millscript.commons.vfs.VFile getStandardConfigurationFile()
Engine getStandardEngine()
Package.
Engine for this configurationorg.millscript.commons.vfs.VFolder getStandardInventoryFolder()
org.millscript.commons.vfs.VFolder getStandardLibFolder()
Package getStandardPackage(Engine engine)
engine - the engine this package is associated with
Package for this configurationorg.millscript.commons.vfs.VFolder getWebsiteCacheFolder()
org.millscript.commons.vfs.VFolder getWebsiteConfFolder()
org.millscript.commons.vfs.VFile getWebsiteConfigurationFile()
org.millscript.commons.vfs.VFile getWebsiteFailureFile()
org.millscript.commons.vfs.VFolder getWebsiteInventoryFolder()
org.millscript.commons.vfs.VFolder getWebsiteLibFolder()
org.millscript.commons.vfs.VFile getWebsiteLockFile()
org.millscript.commons.vfs.VFolder getWebsiteOutputFolder()
org.millscript.commons.vfs.VFile getWebsiteSuccessFile()
org.millscript.commons.vfs.VFolder getWebsiteVarFolder()
org.millscript.commons.vfs.VFS getVFS()
void reportAlertAsMishap(org.millscript.commons.alert.Alert alert)
alert - the Alert to report as a mishapvoid reportAlertAsWarning(org.millscript.commons.alert.Alert alert)
reportAlertAsMishap(Alert).
alert - the Alert to report as a warningvoid reportException(java.lang.Exception exception)
exception - the Exception to reportvoid setLogger(Logger logger)
logger - the new logger for this configurationvoid setOutputCharset(java.nio.charset.Charset cs)
cs - the Charset to use for output
void setProperty(java.lang.String key,
java.lang.Object value)
key - the key to associate a value withvalue - the value to associate with the key
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||