Package org.qdl_lang.config
Class QDLConfigurationLoader<T extends QDLEnvironment>
- java.lang.Object
-
- edu.uiuc.ncsa.security.core.util.LoggingConfigLoader<T>
-
- org.qdl_lang.config.QDLConfigurationLoader<T>
-
- All Implemented Interfaces:
edu.uiuc.ncsa.security.core.util.ConfigurationLoader<T>,edu.uiuc.ncsa.security.core.Version,Serializable,QDLConfigurationConstants
public class QDLConfigurationLoader<T extends QDLEnvironment> extends edu.uiuc.ncsa.security.core.util.LoggingConfigLoader<T> implements QDLConfigurationConstants, edu.uiuc.ncsa.security.core.util.ConfigurationLoader<T>
Created by Jeff Gaynor
on 2/27/20 at 7:37 AM- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_FONT_NAMEstatic intDEFAULT_FONT_SIZEstatic intDEFAULT_FONT_STYLE-
Fields inherited from class edu.uiuc.ncsa.security.core.util.LoggingConfigLoader
cn, debugger, loggerProvider, myLogger
-
Fields inherited from interface org.qdl_lang.config.QDLConfigurationConstants
BOOT_SCRIPT_TAG, CONFG_ATTR_ASSERTIONS_ENABLED, CONFG_ATTR_DEBUG, CONFG_ATTR_ENABLED, CONFG_ATTR_NAME, CONFG_ATTR_NUMERIC_DIGITS, CONFG_ATTR_OVERWRITE_BASE_FUNCTIONS_ENABLED, CONFG_ATTR_RESTRICTED_IO_RESTRICTED, CONFG_ATTR_SERVER_MODE_ENABLED, CONFIG_FILE_FLAG, CONFIG_NAME_FLAG, CONFIG_TAG_NAME, ENABLE_LIBRARY_SUPPORT, LIB_PATH_TAG, LIBRARY_SUPPORT_MODE, LIBRARY_SUPPORT_MODE_LOAD, LIBRARY_SUPPORT_MODE_RUN, MODULE_ATTR_ASSIGN_VARIABLE, MODULE_ATTR_IMPORT_ON_START, MODULE_ATTR_LIB_LOADER, MODULE_ATTR_TYPE, MODULE_ATTR_USE_MODULE, MODULE_ATTR_VERSION, MODULE_ATTR_VERSION_1_0, MODULE_ATTR_VERSION_2_0, MODULE_CLASS_NAME_TAG, MODULE_FAIL_ON_ERRORS, MODULE_PATH_TAG, MODULE_TAG_NAME, MODULE_TYPE_JAVA, MODULE_TYPE_QDL, MODULES_TAG_NAME, QDL_MODULE_PATH_TAG, RUN_INIT_ON_LOAD, SCRIPT_PATH_TAG, VFS_ATTR_ACCESS, VFS_ATTR_TYPE, VFS_MOUNT_POINT_TAG, VFS_ROOT_DIR_TAG, VFS_SCHEME_TAG, VFS_TAG_NAME, VFS_TYPE_MEMORY, VFS_TYPE_MYSQL, VFS_TYPE_PASS_THROUGH, VFS_TYPE_ZIP, VFS_ZIP_FILE_PATH, VIRTUAL_FILE_SYSTEMS_TAG_NAME, WS_ATTR_ANSI_MODE_ON, WS_ATTR_ASSERTIONS_ON, WS_ATTR_AUTOSAVE_INTERVAL, WS_ATTR_AUTOSAVE_MESSAGES_ON, WS_ATTR_AUTOSAVE_ON, WS_ATTR_ECHO_MODE_ON, WS_ATTR_FONT_NAME, WS_ATTR_FONT_SIZE, WS_ATTR_FONT_TYPE, WS_ATTR_logo, WS_ATTR_PREPROCESSOR_ON, WS_ATTR_PRETTY_PRINT, WS_ATTR_SHOW_BANNER, WS_ATTR_TERMINAL_TYPE, WS_ATTR_TERMINAL_TYPE2, WS_ATTR_VERBOSE, WS_COMPRESS_SERIALIZATION_TAG, WS_EDITOR_ENABLE, WS_EDITOR_NAME, WS_ENV, WS_FONT_TAG, WS_HOME_DIR_TAG, WS_SAVE_DIR, WS_TAG, WS_TERMINAL_TYPE_ANSI, WS_TERMINAL_TYPE_SWING, WS_TERMINAL_TYPE_TEXT
-
-
Constructor Summary
Constructors Constructor Description QDLConfigurationLoader(String cfgFile, org.apache.commons.configuration.tree.ConfigurationNode node)QDLConfigurationLoader(String cfgFile, org.apache.commons.configuration.tree.ConfigurationNode node, edu.uiuc.ncsa.security.core.util.MyLoggingFacade logger)Use only in those cases where the logger is constructed elsewhere.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanareAssertionsEnabled()TcreateInstance()protected longgetAutosaveInterval()protected StringgetBootScript()protected booleangetCompressionOn()protected StringgetConfigFile()HashMap<String,String>getConstants()protected StringgetDebugLevel()protected edu.uiuc.ncsa.security.util.cli.editing.EditorsgetEditors()protected StringgetExternalEditorPath()protected booleangetFirstBooleanValue(org.apache.commons.configuration.tree.ConfigurationNode node, String attrib, boolean defaultValue)protected FontgetFont()LibLoadergetLibLoader()protected StringgetLibPath()protected StringgetLibrarySupportMode()protected List<ModuleConfig>getModuleConfigs()protected StringgetModulePath()protected StringgetName()protected intgetNumericDigits()protected StringgetSaveDir()protected StringgetScriptPath()protected StringgetTerminalType()StringgetVersionString()protected List<VFSConfig>getVFSConfigs()protected StringgetWSEnvFile()protected StringgetWSHomeDir()protected BooleanisAnsiModeOn()protected booleanisAutosaveMessagesOn()protected booleanisAutosaveOn()protected booleanisEchoModeOn()protected booleanisEnabled()protected booleanisEnableLibrarySupport()protected booleanisOverwriteBaseFunctionsOn()protected booleanisPreprocessorOn()protected booleanisPrettyPrint()protected booleanisRestrictedIO()protected booleanisRunInitOnLoad()protected booleanisServerModeOn()protected booleanisWSVerboseOn()Tload()static voidmain(String[] args)voidsetConfigFile(String configFile)This is set to point to the configuration file (that information is not contained inside the file).protected booleanshowBanner()protected StringuseLogo()protected booleanuseWSExternalEditor()
-
-
-
Field Detail
-
DEFAULT_FONT_NAME
public static String DEFAULT_FONT_NAME
-
DEFAULT_FONT_STYLE
public static int DEFAULT_FONT_STYLE
-
DEFAULT_FONT_SIZE
public static int DEFAULT_FONT_SIZE
-
-
Constructor Detail
-
QDLConfigurationLoader
public QDLConfigurationLoader(String cfgFile, org.apache.commons.configuration.tree.ConfigurationNode node)
-
QDLConfigurationLoader
public QDLConfigurationLoader(String cfgFile, org.apache.commons.configuration.tree.ConfigurationNode node, edu.uiuc.ncsa.security.core.util.MyLoggingFacade logger)
Use only in those cases where the logger is constructed elsewhere. This will override the logging configuration and use this logger instead.- Parameters:
node-logger-
-
-
Method Detail
-
load
public T load()
- Specified by:
loadin interfaceedu.uiuc.ncsa.security.core.util.ConfigurationLoader<T extends QDLEnvironment>
-
setConfigFile
public void setConfigFile(String configFile)
This is set to point to the configuration file (that information is not contained inside the file). It is optional.- Parameters:
configFile-
-
getConfigFile
protected String getConfigFile()
-
getBootScript
protected String getBootScript()
-
getWSEnvFile
protected String getWSEnvFile()
-
getWSHomeDir
protected String getWSHomeDir()
-
getFont
protected Font getFont()
-
getCompressionOn
protected boolean getCompressionOn()
-
getScriptPath
protected String getScriptPath()
-
getLibPath
protected String getLibPath()
-
getModulePath
protected String getModulePath()
-
getFirstBooleanValue
protected boolean getFirstBooleanValue(org.apache.commons.configuration.tree.ConfigurationNode node, String attrib, boolean defaultValue)
-
useWSExternalEditor
protected boolean useWSExternalEditor()
-
isAnsiModeOn
protected Boolean isAnsiModeOn()
-
getExternalEditorPath
protected String getExternalEditorPath()
-
getSaveDir
protected String getSaveDir()
-
getEditors
protected edu.uiuc.ncsa.security.util.cli.editing.Editors getEditors()
-
isWSVerboseOn
protected boolean isWSVerboseOn()
-
showBanner
protected boolean showBanner()
-
useLogo
protected String useLogo()
-
getTerminalType
protected String getTerminalType()
-
isEnabled
protected boolean isEnabled()
-
getName
protected String getName()
-
isOverwriteBaseFunctionsOn
protected boolean isOverwriteBaseFunctionsOn()
-
isServerModeOn
protected boolean isServerModeOn()
-
isRestrictedIO
protected boolean isRestrictedIO()
-
getDebugLevel
protected String getDebugLevel()
-
isEchoModeOn
protected boolean isEchoModeOn()
-
isPreprocessorOn
protected boolean isPreprocessorOn()
-
areAssertionsEnabled
protected boolean areAssertionsEnabled()
-
isPrettyPrint
protected boolean isPrettyPrint()
-
isAutosaveOn
protected boolean isAutosaveOn()
-
isAutosaveMessagesOn
protected boolean isAutosaveMessagesOn()
-
getAutosaveInterval
protected long getAutosaveInterval()
-
getLibrarySupportMode
protected String getLibrarySupportMode()
-
isEnableLibrarySupport
protected boolean isEnableLibrarySupport()
-
isRunInitOnLoad
protected boolean isRunInitOnLoad()
-
getNumericDigits
protected int getNumericDigits()
-
getLibLoader
public LibLoader getLibLoader()
-
getModuleConfigs
protected List<ModuleConfig> getModuleConfigs()
-
createInstance
public T createInstance()
- Specified by:
createInstancein interfaceedu.uiuc.ncsa.security.core.util.ConfigurationLoader<T extends QDLEnvironment>
-
getConstants
public HashMap<String,String> getConstants()
- Specified by:
getConstantsin interfaceedu.uiuc.ncsa.security.core.util.ConfigurationLoader<T extends QDLEnvironment>
-
main
public static void main(String[] args)
-
getVersionString
public String getVersionString()
- Specified by:
getVersionStringin classedu.uiuc.ncsa.security.core.util.LoggingConfigLoader<T extends QDLEnvironment>
-
-