lucee.Componentcommandbox.system.modules_app.task-commands.models.TaskService
Copyright Since 2014 CommandBox by Ortus Solutions, Corp www.coldbox.org | www.ortussolutions.com I handle excuction of Task Runners
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
CommandService
|
true
|
false
|
|
any
|
FileSystemUtil
|
true
|
false
|
|
any
|
consoleLogger
|
true
|
false
|
|
any
|
cr
|
true
|
false
|
|
any
|
job
|
true
|
false
|
|
any
|
logger
|
true
|
false
|
|
any
|
metadataCache
|
true
|
false
|
|
any
|
shell
|
true
|
false
|
|
any
|
wirebox
|
true
|
false
|
Method Summary | |
---|---|
boolean
|
canLifecycleEventRun([any taskCFC], [string eventName], [string target])
Determines if a lifecycle event can run based on the this. |
any
|
createTaskCFC(string taskFile)
Creates Task CFC instance from absolute file path. |
string
|
getCommandService()
|
string
|
getConsoleLogger()
|
string
|
getCr()
|
string
|
getFileSystemUtil()
|
string
|
getJob()
|
string
|
getLogger()
|
string
|
getMetadataCache()
|
string
|
getShell()
|
array
|
getTaskMethods(string taskFile)
Returns the public methods in a task component. |
string
|
getWirebox()
|
any
|
invokeLifecycleEvent([any taskCFC], [string eventName], [struct args='[runtime expression]'])
Optionally invokes a lifecyle event based on whether it exists and is valid to be called. |
any
|
onDIComplete()
|
string
|
runTask(string taskFile, string target='run', [any taskArgs='[runtime expression]'], [boolean topLevel='true'])
Runs a task. |
any
|
setCommandService(any CommandService)
|
any
|
setConsoleLogger(any consoleLogger)
|
any
|
setCr(any cr)
|
any
|
setFileSystemUtil(any FileSystemUtil)
|
any
|
setJob(any job)
|
any
|
setLogger(any logger)
|
any
|
setMetadataCache(any metadataCache)
|
any
|
setShell(any shell)
|
any
|
setWirebox(any wirebox)
|
boolean
|
taskHasMethod([any taskCFC], [string method])
Convenience method to determine if a Task CFC instance has a given method name. |
any
|
wrapLifecycleEvent([any taskCFC], [string eventName], [struct args='[runtime expression]'])
Accepts a UDF and wraps it in another callback that adds additional functionality to it, creating a chain of callbacks. |
Methods inherited from class lucee.Component |
---|
None |
Property Detail |
---|
access
- publicrequired
- falsereturntype
- anyinject
- CommandServiceserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- FileSystemserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- logbox:logger:consoleserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- cr@constantsserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- interactiveJobserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- logbox:logger:{this}serializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- cachebox:metadataCacheserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- Shellserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- wireboxserializable
- trueMethod Detail |
---|
Determines if a lifecycle event can run based on the this.XXX_only and this.XXX_except variables in the task CFC instance.
taskCFC
- The actual Task CFC instanceeventName
- Name of the lifecycle event to checktarget
- Name of the task target requesting the lifecycle eventCreates Task CFC instance from absolute file path
taskFile
- Absolute path to task CFC to create.Returns the public methods in a task component
taskFile
- Path to the Task CFCOptionally invokes a lifecyle event based on whether it exists and is valid to be called.
taskCFC
- The actual Task CFC instanceeventName
- Name of the lifecycle event to callargs
- The args of the actual target methodRuns a task
taskFile
- Path to the Task CFC that you want to runtarget
- Method in Task CFC to runtaskArgs
- Struct of arguments to pass on to the tasktopLevel
- false for target dependecy runsCommandService
consoleLogger
cr
FileSystemUtil
job
logger
metadataCache
shell
wirebox
Convenience method to determine if a Task CFC instance has a given method name
taskCFC
- The actual Task CFC instancemethod
- Name of method to check forAccepts a UDF and wraps it in another callback that adds additional functionality to it, creating a chain of callbacks.
taskCFC
- The actual Task CFC instanceeventName
- Name of the lifecycle event to wrapargs
- The args of the actual target method