lucee.Component
commandbox.system.services.ConfigService
Copyright Since 2014 CommandBox by Ortus Solutions, Corp www.coldbox.org | www.ortussolutions.com I handle working with the CommandBox.json file
| Property Summary | ||||
|---|---|---|---|---|
| type | property | default | serializable | required |
any
|
configFilePath
|
true
|
false
|
|
any
|
configSettings
|
true
|
false
|
|
any
|
formatterUtil
|
true
|
false
|
|
any
|
JSONService
|
true
|
false
|
|
any
|
ModuleService
|
true
|
false
|
|
any
|
possibleConfigSettings
|
true
|
false
|
|
any
|
ServerService
|
true
|
false
|
|
| Constructor Summary | |
|---|---|
|
init()
Constructor. |
|
| Method Summary | |
|---|---|
any
|
completeProperty([any all='false'], [any asSet='false'])
Dynamic completion for property name based on contents of commandbox. |
string
|
getConfigFilePath()
|
string
|
getConfigSettings()
|
string
|
getFormatterUtil()
|
string
|
getJSONService()
|
string
|
getModuleService()
|
string
|
getPossibleConfigSettings()
|
string
|
getServerService()
|
any
|
getSetting(any name, [any defaultValue])
Get a setting from a configuration structure. |
any
|
loadConfig()
Loads config settings from disk. |
any
|
onDIComplete()
|
any
|
removeSetting(any name)
Remove a value in the application configuration settings. |
any
|
saveConfig()
Persists config settings to disk. |
any
|
setConfigFilePath(any configFilePath)
|
any
|
setConfigSettings(struct configSettings)
|
any
|
setFormatterUtil(any formatterUtil)
|
any
|
setJSONService(any JSONService)
|
any
|
setModuleService(any ModuleService)
|
any
|
setPossibleConfigSettings(any possibleConfigSettings)
|
any
|
setServerService(any ServerService)
|
any
|
setSetting(any name, any value, [boolean thisAppend='false'])
Set a value in the application configuration settings. |
boolean
|
settingExists(any name)
Check if a value exists in a configuration structure. |
| Methods inherited from class lucee.Component |
|---|
| None |
| Constructor Detail |
|---|
Constructor
| Property Detail |
|---|
access - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyinject - formatterserializable - trueaccess - publicrequired - falsereturntype - anyinject - JSONServiceserializable - trueaccess - publicrequired - falsereturntype - anyinject - ModuleServiceserializable - trueaccess - publicrequired - falsereturntype - anyserializable - trueaccess - publicrequired - falsereturntype - anyinject - ServerServiceserializable - true| Method Detail |
|---|
Dynamic completion for property name based on contents of commandbox.json
all - Pass false to ONLY suggest existing setting names. True will suggest all possible settings.asSet - Pass true to add = to the end of the optionsGet a setting from a configuration structure
name - The name of the setting. Allows for "deep" struct/array names.defaultValue - The default value to use if setting does not existLoads config settings from disk
Remove a value in the application configuration settings
name - The name of the setting. Allows for "deep" struct/array names.Persists config settings to disk
configFilePathconfigSettingsformatterUtilJSONServiceModuleServicepossibleConfigSettingsServerServiceSet a value in the application configuration settings
name - The name of the setting. Allows for "deep" struct/array names.value - The value to setthisAppend - Append an array or struct to existingCheck if a value exists in a configuration structure
name - The name of the setting. Allows for "deep" struct/array names.