WEB-INF.cftags.component coldbox.system.ioc.AbstractIOCAdapter
A base IOC factory adapter
Constructor Summary | |
---|---|
init([string definitionFile=''], [struct properties='[runtime expression]'], [any coldbox=''])
Constructor. |
Method Summary | |
---|---|
boolean
|
containsBean(string beanName)
Check if the bean factory contains a bean. |
void
|
createFactory()
Create the factory. |
any
|
getBean(string beanName)
Get a Bean from the object factory. |
any<Controller>
|
getColdBox()
Get the ColdBox controller this adapter is linked to. |
string
|
getDefinitionFile()
Get the definition file for this adapter. |
any
|
getFactory()
Get the adapted factory. |
any
|
getParentFactory()
Get the parent factory. |
struct
|
getProperties()
Get the adapter properties. |
private Util
|
getUtil()
Create and return a util object. |
any
|
invokeFactoryMethod(string method, [struct args='[runtime expression]'])
Invoke a factory method in the bean factory. |
void
|
setParentFactory(any parent)
Set a parent factory on the adapted factory. |
Methods inherited from class WEB-INF.cftags.component |
---|
None |
Constructor Detail |
---|
Constructor
definitionFile
- The definition file to load a factory withproperties
- Properties to pass to the factory to createcoldbox
- A coldbox application that this instance of logbox can be linked to, not used if not using within a ColdBox Application.Method Detail |
---|
Check if the bean factory contains a bean
beanName
- The bean name to retrieve from the object factoryCreate the factory
Get a Bean from the object factory
beanName
- The bean name to retrieve from the object factoryGet the ColdBox controller this adapter is linked to. If not linked and exception is thrown
Get the definition file for this adapter
Get the adapted factory
Get the parent factory
Get the adapter properties
Create and return a util object
Invoke a factory method in the bean factory. If the factory returns a void/null, this method returns void or null
method
- The method to invokeargs
- The arguments to pass into the methodSet a parent factory on the adapted factory
parent
- The parent factory to add