lucee.Component
coldbox.system.ioc.scopes.CacheBox
Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com --- A scope that interfaces with CacheBox
| Property Summary | ||||
|---|---|---|---|---|
| type | property | default | serializable | required |
any
|
cacheBox
CacheBox Reference.
|
true
|
false
|
|
any
|
injector
Injector linkage.
|
true
|
false
|
|
any
|
log
Log Reference.
|
true
|
false
|
|
| Constructor Summary | |
|---|---|
|
init(any<Injector> injector)
Configure the scope for operation and returns itself. |
|
| Method Summary | |
|---|---|
boolean
|
exists(any<Mapping> mapping)
Indicates whether an object exists in scope. |
string
|
getCacheBox()
|
any
|
getFromScope(any<Mapping> mapping, [any initArguments])
Retrieve an object from scope or create it if not found in scope. |
string
|
getInjector()
|
string
|
getLog()
|
any
|
setCacheBox(any cacheBox)
|
any
|
setInjector(any injector)
|
any
|
setLog(any log)
|
| Methods inherited from class lucee.Component |
|---|
| None |
| Constructor Detail |
|---|
Configure the scope for operation and returns itself
injector - The linked WireBox injector| Property Detail |
|---|
CacheBox Reference
access - publicrequired - falsereturntype - anyserializable - trueInjector linkage
access - publicrequired - falsereturntype - anyserializable - trueLog Reference
access - publicrequired - falsereturntype - anyserializable - true| Method Detail |
|---|
Indicates whether an object exists in scope
exists
in interface
IScope
mapping - The linked WireBox injectorRetrieve an object from scope or create it if not found in scope
getFromScope
in interface
IScope
mapping - The linked WireBox injectorinitArguments - The constructor struct of arguments to passthrough to initializationcacheBoxinjectorlog