WEB-INF.cftags.component coldbox.system.FrameworkSupertype coldbox.system.Plugin coldbox.system.plugins.IOC
An Inversion Of Control plugin that interfaces with major ColdFusion IoC/DI frameworks
Constructor Summary | |
---|---|
init(any controller)
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<boolean>
|
containsBean(any beanName)
Check if the bean factory contains a bean. |
any
|
getAdapter()
Get the IoC Factory Adapter in use by this plugin. |
any
|
getBean(any beanName)
Get a Bean from the loaded object factory. |
any
|
getIOCDefinitionFile()
Get the definition file configured for this plugin. |
any
|
getIOCFramework()
Get the IoC framework name defined for this plugin. |
any
|
getIoCFactory()
Returns the IoC Factory in use. |
private void
|
processObjectCaching(any target, any cacheKey)
Process IoC object Caching. |
void
|
reloadDefinitionFile()
Reloads the IoC factory. |
private any
|
validateDefinitionFile(any definitionFile)
Validate the IoC Definition File. |
Methods inherited from class WEB-INF.cftags.component |
---|
None |
Constructor Detail |
---|
Constructor
controller
- coldbox.system.web.ControllerMethod 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 the IoC Factory Adapter in use by this plugin
Get a Bean from the loaded object factory
beanName
- The bean name to retrieve from the object factoryGet the definition file configured for this plugin
Get the IoC framework name defined for this plugin
Returns the IoC Factory in use
Process IoC object Caching
target
- The bean target to inspectcacheKey
- CacheKey to use if necessaryReloads the IoC factory. Basically calls configure again. DEPRECATED
Validate the IoC Definition File. Called internally to verify the file location and get the correct path to it.
definitionFile
- The definition file to verify for loading