lucee.Component logbox.system.core.util.Util
The main ColdBox utility library filled with lots of nice goodies.
Method Summary | |
---|---|
Util
|
addMapping(string name, string path)
Add a CFML Mapping. |
struct
|
arrayToStruct(array in)
Convert an array to struct argument notation. |
void
|
convertToColdBox(any family, any target)
Decorate an object as a ColdBox Family object. |
string
|
fileLastModified(any filename)
Get the last modified date of a file. |
string
|
getAbsolutePath(any path)
Turn any system path, either relative or absolute, into a fully qualified one. |
any
|
getEnv(string key, [any defaultValue])
Retrieve a Java System environment value by name. |
any
|
getInheritedMetaData(any component, [any stopRecursions='[runtime expression]'], [any md='[runtime expression]'])
Returns a single-level metadata struct that includes all items inhereited from extending classes. |
any
|
getJavaSystem()
Retrieve an instance of Java System. |
any<MixerUtil>
|
getMixerUtil()
Get the mixer utility. |
any
|
getSystemProperty(string key, [any defaultValue])
Retrieve a Java System property value by name. |
any
|
getSystemSetting(string key, [any defaultValue])
Retrieve a Java System property or env value by name. |
boolean
|
inThread()
Check if you are in cfthread or not for any CFML Engine. |
boolean
|
isFamilyType(any family, any target)
Checks if an object is of the passed in family type. |
any
|
placeHolderReplacer(any str, any settings)
PlaceHolder Replacer for strings containing ${} patterns. |
string
|
ripExtension(any filename)
Rip the extension of a filename. |
private any
|
stopClassRecursion(any classname, any stopRecursions)
Should we stop recursion or not due to class name found: Boolean. |
Methods inherited from class lucee.Component |
---|
None |
Method Detail |
---|
Add a CFML Mapping
name
- The name of the mappingpath
- The path to the mappingConvert an array to struct argument notation
in
- The array to convertDecorate an object as a ColdBox Family object
family
- The family to covert it to: handler, interceptortarget
- The target objectGet the last modified date of a file
filename
Turn any system path, either relative or absolute, into a fully qualified one
path
Retrieve a Java System environment value by name.
key
- The name of the environment variable to look up.defaultValue
- The default value to use if the key does not exist in the envReturns a single-level metadata struct that includes all items inhereited from extending classes.
component
- A component instance, or the path to onestopRecursions
- An array of classes to stop recursionmd
- A structure containing a copy of the metadata for this level of recursion.Retrieve an instance of Java System
Get the mixer utility
Retrieve a Java System property value by name.
key
- The name of the java property to look up.defaultValue
- The default value to use if the key does not exist in the system propertiesRetrieve a Java System property or env value by name. It looks at properties first then environment variables
key
- The name of the setting to look up.defaultValue
- The default value to use if the key does not exist in the system properties or the envCheck if you are in cfthread or not for any CFML Engine
Checks if an object is of the passed in family type
family
- The family to covert it to: handler, interceptortarget
- The target objectPlaceHolder Replacer for strings containing ${} patterns
str
- The string variable to look for replacementssettings
- The structure of settings to use in replacingRip the extension of a filename.
filename
Should we stop recursion or not due to class name found: Boolean
classname
- The class name to checkstopRecursions
- An array of classes to stop processing at