lucee.Componentcbioc.Factory
An Inversion Of Control plugin that interfaces with major ColdFusion IoC/DI frameworks
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
adapter
|
true
|
false
|
|
any
|
autoreload
|
true
|
false
|
|
any
|
definitionFile
|
true
|
false
|
|
any
|
framework
|
true
|
false
|
|
any
|
log
|
true
|
false
|
|
any
|
parentFactory
|
true
|
false
|
Constructor Summary | |
---|---|
init(struct settings, any coldbox)
Constructor. |
Method Summary | |
---|---|
private any
|
buildAdapter(any framework, any definitionFile)
Build an IoC framework adapter and returns it. |
void
|
configure()
Configure or Re-Configure the IoC Plugin. |
any
|
containsBean(any beanName)
Check if the bean factory contains a bean. |
string
|
getAdapter()
|
string
|
getAutoreload()
|
any
|
getBean(any beanName)
Get a Bean from the loaded object factory. |
string
|
getDefinitionFile()
|
string
|
getFramework()
|
any
|
getIoCFactory()
Returns the IoC Factory in use. |
string
|
getLog()
|
string
|
getParentFactory()
|
void
|
reloadDefinitionFile()
Reloads the IoC factory. |
any
|
setAdapter(any adapter)
|
any
|
setAutoreload(any autoreload)
|
any
|
setDefinitionFile(any definitionFile)
|
any
|
setFramework(any framework)
|
any
|
setLog(any log)
|
any
|
setParentFactory(any parentFactory)
|
Methods inherited from class lucee.Component |
---|
None |
Constructor Detail |
---|
Constructor
settings
- The configuration settings structcoldbox
- The ColdBox controllerProperty Detail |
---|
access
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- logbox:logger:{this}serializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueMethod Detail |
---|
Build an IoC framework adapter and returns it
framework
- The framework adapter to builddefinitionFile
- The framework definition file to loadConfigure or Re-Configure the IoC Plugin. Loads the chosen IoC Factory and configures it for usage
Check if the bean factory contains a bean
beanName
- The bean name to retrieve from the object factoryGet a Bean from the loaded object factory
beanName
- The bean name to retrieve from the object factoryReturns the IoC Factory in use
Reloads the IoC factory. Basically calls configure again. DEPRECATED
adapter
autoreload
definitionFile
framework
log
parentFactory