lucee.Component
coldbox.system.remote.ColdboxProxy
Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com --- This component is the coldbox remote proxy used for model operation. This will convert the framework into a model framework rather than a HTML MVC framework.
| Property Summary | ||||
|---|---|---|---|---|
| type | property | default | serializable | required |
any
|
COLDBOX_APP_KEY
The loaded app key.
|
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'])
|
private any
|
getCache([string cacheName='default'])
Get a CacheBox Cache Provider. |
private any
|
getCacheBox()
Get the running app CacheBox instance. |
string
|
getCOLDBOX_APP_KEY()
|
private any
|
getController()
Get the running ColdBox Controller instance. |
private any
|
getInstance(any name, [any initArguments], [any dsl])
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
|
getModel(any name, [any dsl], [any initArguments])
|
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 a util 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 |
|---|
The loaded app key
access - publicrequired - falsereturntype - anyserializable - true| Method Detail |
|---|
Announce an interception
state - The interception state to announcedata - A data structure used to pass intercepted information.stateinterceptDataasyncasyncAllasyncAllJoinasyncPriorityasyncJoinTimeoutGet a CacheBox Cache Provider
cacheNameGet the running app CacheBox instance
Get the running ColdBox Controller instance
Locates, Creates, Injects and Configures an object model instance
name - The mapping name or DSLinitArguments - The constructor structure of arguments to passthrough when initializing the instancedsl - The dsl to useGet an interceptor
interceptorNamedeepSearchGet 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 namenamedslinitArgumentsGet a reference to the ColdBox Remoting utility class
Get the running app root logger instance
Create and return a util 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_KEYVerify the coldbox app exists in application scope
throwOnNotExist