lucee.Componentcoldbox.system.remote.ColdboxProxy
Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com --- This object is a proxy object that can be used by components to tap into ColdBox MVC. It can be used when building RESTful/SOAP/Services or ORM Event handling,etc. It's intent is to provide a way for ANY cfc to talk to a running ColdBox application or even start one up.
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
COLDBOX_APP_KEY
Internal key used to track the location in the application scope.
|
true
|
false
|
Method Summary | |
---|---|
private boolean
|
announce(any state, [struct data='[runtime expression]'])
Announce an interception. |
private any
|
announceInterception(any state, [struct interceptData='[runtime expression]'], [boolean async='false'], [boolean asyncAll='false'], [boolean asyncAllJoin='true'], [any asyncPriority='NORMAL'], [numeric asyncJoinTimeout='0'])
|
string
|
getCOLDBOX_APP_KEY()
|
private any
|
getCache([string cacheName='default'])
Get a CacheBox Cache Provider. |
private any
|
getCacheBox()
Get the running app CacheBox instance. |
private any
|
getColdboxAppKey()
Get the ColdBox app key used in the application scope. |
private any
|
getController()
Get the running ColdBox Controller instance. |
private any
|
getInstance([any name], [struct initArguments='[runtime expression]'], [any dsl], [any targetObject=''], [any injector])
Locates, Creates, Injects and Configures an object model instance. |
private any
|
getInterceptor([string interceptorName], [boolean deepSearch='false'])
Get an interceptor. |
private any
|
getLogBox()
Get the running app LogBox instance. |
private any
|
getLogger(any category)
Get a named logger reference. |
private any
|
getRemotingUtil()
Get a reference to the ColdBox Remoting utility class. |
private any
|
getRootLogger()
Get the running app root logger instance. |
private any
|
getUtil()
Create and return the ColdBox utility object. |
private any
|
getWireBox()
Get the running app WireBox instance. |
private void
|
handleException(any exceptionObject)
Handle a ColdBox Proxy Exception. |
private void
|
loadColdbox(string appMapping, [string configLocation=''], [boolean reloadApp='false'], string appKey='[runtime expression]')
Load a coldbox application, and place the coldbox controller in application scope for usage. |
private any
|
process()
Process a remote call into ColdBox's event model and return data/objects back. |
private any
|
selfAutoWire()
Autowire the proxy on creation. |
any
|
setCOLDBOX_APP_KEY(any COLDBOX_APP_KEY)
|
private boolean
|
verifyColdBox([boolean throwOnNotExist='true'])
Verify the coldbox app exists in application scope. |
Methods inherited from class lucee.Component |
---|
None |
Property Detail |
---|
Internal key used to track the location in the application scope
access
- publicrequired
- falsereturntype
- anyserializable
- trueMethod Detail |
---|
Announce an interception
state
- The interception state to announcedata
- A data structure used to pass intercepted information.state
interceptData
async
asyncAll
asyncAllJoin
asyncPriority
asyncJoinTimeout
Get a CacheBox Cache Provider
cacheName
Get the running app CacheBox instance
Get the ColdBox app key used in the application scope.
Get the running ColdBox Controller instance
Locates, Creates, Injects and Configures an object model instance
name
- The mapping name or CFC instance path to try to build upinitArguments
- The constructor structure of arguments to passthrough when initializing the instancedsl
- The dsl string to use to retrieve the instance model object, mutually exclusive with 'nametargetObject
- The object requesting the dependency, usually only used by DSL lookupsinjector
- The child injector to use when retrieving the instanceGet an interceptor
interceptorName
deepSearch
Get the running app LogBox instance
Get a named logger reference.
category
- The category name to use in this logger or pass in the target object will log from and we will inspect the object and use its metadata nameGet a reference to the ColdBox Remoting utility class
Get the running app root logger instance
Create and return the ColdBox utility object
Get the running app WireBox instance
Handle a ColdBox Proxy Exception
exceptionObject
- The exception object to handleLoad a coldbox application, and place the coldbox controller in application scope for usage. If the application is already running, then it will not re-do it, unless you specify the reload argument or the application expired.
appMapping
- The app to load via mappingconfigLocation
- The config cfc to load else use by convention config/Coldboc.cfcreloadApp
- To reload the app if runningappKey
- The running app key in application scopeProcess a remote call into ColdBox's event model and return data/objects back.
Autowire the proxy on creation. This references the super class only, we use cgi information to get the actual proxy component path
COLDBOX_APP_KEY
Verify the coldbox app exists in application scope
throwOnNotExist