lucee.Component coldbox.system.ioc.Builder
Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com --- The WireBox builder for components, java, etc. I am in charge of building stuff and integration dsl builders.
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
cacheBoxDSL
CacheBox DSL Utility.
|
true
|
false
|
|
any
|
coldboxDSL
ColdBox DSL Utility.
|
true
|
false
|
|
struct
|
customDSL
Custom DSL Map Storage.
|
true
|
false
|
|
any
|
injector
Injector Reference.
|
true
|
false
|
|
any
|
log
Logging utilty object.
|
true
|
false
|
|
any
|
logBox
LogBox reference.
|
true
|
false
|
|
any
|
logBoxDSL
LogBox DSL Utility.
|
true
|
false
|
|
any
|
utility
ColdBox Utility.
|
true
|
false
|
Constructor Summary | |
---|---|
init(any<Injector> injector)
Constructor. |
Method Summary | |
---|---|
any
|
buildArgumentCollection(any<Mapping> mapping, any argumentArray, any targetObject)
Build arguments for a mapping and return the structure representation. |
any
|
buildCFC(any<Mapping> mapping, [any initArguments='[runtime expression]'])
Build a cfc class via mappings. |
any
|
buildDSLDependency(any definition, any targetID, [any targetObject=''])
Build a DSL Dependency, if not found, returns null. |
any
|
buildFactoryMethod(any<Mapping> mapping, [any initArguments='[runtime expression]'])
Build an object using a factory method. |
any
|
buildFeed(any<Mapping> mapping)
Build an rss feed the WireBox way. |
any
|
buildJavaClass(any<Mapping> mapping)
Build a Java class via mappings. |
any
|
buildProviderMixer()
Used to provider providers via mixers on targeted objects. |
any
|
buildSimpleDSL(any dsl, any targetID, any targetObject='')
Build a DSL Dependency using a simple dsl string. |
any
|
buildWebservice(any<Mapping> mapping, [any initArguments='[runtime expression]'])
Build a webservice object. |
private any
|
genericGetter()
Generic getter for Virtual Inheritance. |
private any
|
genericSetter()
Generic setter for Virtual Inheritance. |
private any
|
getByTypeDSL(any definition, [any targetObject])
Get dependencies using the mapped type. |
string
|
getCacheBoxDSL()
|
string
|
getColdboxDSL()
|
string
|
getCustomDSL()
|
string
|
getInjector()
|
private any
|
getJavaDSL(any definition, [any targetObject])
Get a Java object. |
string
|
getLog()
|
string
|
getLogBox()
|
string
|
getLogBoxDSL()
|
private any
|
getModelDSL(any definition, [any targetObject])
Get dependencies using the model dependency DSL. |
private any
|
getProviderDSL(any definition, [any targetObject=''])
Get dependencies using the our provider pattern DSL. |
string
|
getUtility()
|
private any
|
getWireBoxDSL(any definition, [any targetObject])
Get dependencies using the wirebox dependency DSL. |
Builder
|
registerCustomBuilders()
Register custom DSL builders with this main wirebox builder. |
Builder
|
registerDSL(any namespace, any path)
A direct way of registering custom DSL namespaces. |
any
|
setCacheBoxDSL(any cacheBoxDSL)
|
any
|
setColdboxDSL(any coldboxDSL)
|
any
|
setCustomDSL(struct customDSL)
|
any
|
setInjector(any injector)
|
any
|
setLog(any log)
|
any
|
setLogBox(any logBox)
|
any
|
setLogBoxDSL(any logBoxDSL)
|
any
|
setUtility(any utility)
|
any
|
toVirtualInheritance(any mapping, any target, any targetMapping)
Do our virtual inheritance magic. |
Methods inherited from class lucee.Component |
---|
None |
Constructor Detail |
---|
Constructor. If called without a configuration binder, then WireBox will instantiate the default configuration binder found coldbox.system.ioc.config.DefaultBinder
injector
- The linked WireBox injectorProperty Detail |
---|
CacheBox DSL Utility
access
- publicrequired
- falsereturntype
- anyserializable
- trueColdBox DSL Utility
access
- publicrequired
- falsereturntype
- anyserializable
- trueCustom DSL Map Storage
access
- publicrequired
- falsereturntype
- anyserializable
- trueInjector Reference
access
- publicrequired
- falsereturntype
- anyserializable
- trueLogging utilty object
access
- publicrequired
- falsereturntype
- anyserializable
- trueLogBox reference
access
- publicrequired
- falsereturntype
- anyserializable
- trueLogBox DSL Utility
access
- publicrequired
- falsereturntype
- anyserializable
- trueColdBox Utility
access
- publicrequired
- falsereturntype
- anyserializable
- trueMethod Detail |
---|
Build arguments for a mapping and return the structure representation
mapping
- The mapping to constructargumentArray
- The argument array of datatargetObject
- The target object we are building the DSL dependency forBuild a cfc class via mappings
mapping
- The mapping to constructinitArguments
- The constructor structure of arguments to passthrough when initializing the instanceBuild a DSL Dependency, if not found, returns null
definition
- The dependency definition structure: name, dsl as keystargetID
- The target ID we are building this dependency fortargetObject
- The target object we are building the DSL dependency forBuild an object using a factory method
mapping
- The mapping to constructinitArguments
- The constructor structure of arguments to passthrough when initializing the instanceBuild an rss feed the WireBox way
mapping
- The mapping to constructBuild a Java class via mappings
mapping
- The mapping to constructUsed to provider providers via mixers on targeted objects
Build a DSL Dependency using a simple dsl string
dsl
- The dsl string to buildtargetID
- The target ID we are building this dependency fortargetObject
- The target object we are building the DSL dependency forBuild a webservice object
mapping
- The mapping to constructinitArguments
- The constructor structure of arguments to passthrough when initializing the instanceGeneric getter for Virtual Inheritance
Generic setter for Virtual Inheritance
Get dependencies using the mapped type
definition
- The dependency definition structuretargetObject
- The target object we are building the DSL dependency for. If empty, means we are just requesting buildingGet a Java object
definition
- The dependency definition structure: name, dsl as keystargetObject
- The target object we are building the DSL dependency forGet dependencies using the model dependency DSL
definition
- The dependency definition structure: name, dsl as keystargetObject
- The target object we are building the DSL dependency forGet dependencies using the our provider pattern DSL
definition
- The dependency definition structuretargetObject
- The target object we are building the DSL dependency for. If empty, means we are just requesting buildingGet dependencies using the wirebox dependency DSL
definition
- The dependency definition structure: name, dsl as keystargetObject
- The target object we are building the DSL dependency forRegister custom DSL builders with this main wirebox builder
A direct way of registering custom DSL namespaces
namespace
- The namespace you would like to registerpath
- The instantiation path to the CFC that implements this scope, it must have an init() method and implement: coldbox.system.ioc.dsl.IDSLBuildercacheBoxDSL
coldboxDSL
customDSL
injector
log
logBox
logBoxDSL
utility
Do our virtual inheritance magic
mapping
- The mapping to convert totarget
- The target objecttargetMapping
- The target mapping