|
ColdBox Platform Version 2.6.4 | ||||
| FRAMES | |||||
WEB-INF.cftags.component
coldbox.system.extras.lightwire.LightWire
public class LightWire
I am the LightWire factory that creates all singleton and transient objects, injecting them with all of their necessary dependencies as defined in the configuration file.
| Constructor Summary | |
|---|---|
init(any ConfigBean, [any parentFactory='[runtime expression]'])
I initialize the LightWire object factory |
|
| Method Summary | |
|---|---|
boolean |
containsBean(string beanName)
returns true if the BeanFactory and its hierarchy contains a bean definition that matches the given name |
private any |
createNewObject(string ObjectName)
I create an object or get it from a factory |
any |
getBean(string ObjectName)
I return a bean with all of its dependencies loaded from the factory hierarchy |
struct |
getConfig()
Get the config structure used in this factory |
private any |
getObject(string ObjectName, string ObjectType)
I return a LightWire scoped object (Singleton or Transient) with all of its dependencies loaded |
any |
getSingleton(string ObjectName, [boolean verifyCheck='true'])
I return a LightWire scoped Singleton with all of its dependencies loaded from the local factory only |
string |
getSingletonKeyList()
A list of all the cached singleton keys in the factory |
any |
getTransient(string ObjectName, [boolean verifyCheck='true'])
I return a transient object from the local factory only |
private any |
getUtil()
Get the LightWire utility object: coldbox |
any |
getparentFactory()
Get the parent factory for hierarchy operations |
private any |
invoker(any object, string method, [struct argCollection], [string argList])
calls private/packaged/public methods |
void |
lightwireMixin(string ElementName, any ElementValue, [string ElementScope='variables'])
I add the passed elements to the scope passed within this object |
boolean |
localFactoryContainsBean(string beanName)
returns true if the local BeanFactory contains a bean definition that matches the given name |
private void |
mixinSet(any object, any name, [boolean remove='false'])
Start or Stop the Mixin Set |
private any |
nameResolution(any name)
Get a bean name via alias or bean name |
void |
setparentFactory(any parentFactory)
Set in a parent factory to use for hierarchy operations |
private any |
setterandMixinInject(string ObjectName, any Object)
I handle setter and mixing injections to a bean |
private void |
verifyBean(string ObjectName)
Verify a bean definition exists in hierarchy, else throw error |
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Constructor Detail |
|---|
public init(any ConfigBean, [any parentFactory='[runtime expression]'])
ConfigBean - I am the initialized config bean.parentFactory - The lightwire parent factory to associate this factory with.| Method Detail |
|---|
public boolean containsBean(string beanName)
beanName - name of the bean to look forprivate any createNewObject(string ObjectName)
ObjectName - I am the name of the object to create.public any getBean(string ObjectName)
ObjectName - I am the name of the object to try to generate.public struct getConfig()
private any getObject(string ObjectName, string ObjectType)
ObjectName - I am the name of the object to return.ObjectType - I am the type of object to return (Singleton or Transient).public any getSingleton(string ObjectName, [boolean verifyCheck='true'])
ObjectName - I am the name of the object to generate.verifyCheck - Verify the bean config existence or notpublic string getSingletonKeyList()
public any getTransient(string ObjectName, [boolean verifyCheck='true'])
ObjectName - I am the name of the object to create.verifyCheck - Verify the bean config existence or notprivate any getUtil()
public any getparentFactory()
private any invoker(any object, string method, [struct argCollection], [string argList])
object - The object to call a method onmethod - Name of the private method to callargCollection - Can be called with an argument collection structargList - Can be called with an argument list, for simple values only: ex: 'plugin=logger,number=1'public void lightwireMixin(string ElementName, any ElementValue, [string ElementScope='variables'])
ElementName - I am the name of the element to mix in.ElementValue - I am the value of the element to mix in.ElementScope - The scope to which inject the property to.public boolean localFactoryContainsBean(string beanName)
beanName - name of the bean to look forprivate void mixinSet(any object, any name, [boolean remove='false'])
object - I am the object to inject dependencies into.name - I am the object name.remove - Remove or Add Mixinsprivate any nameResolution(any name)
name - Bean name or alias to resolve.public void setparentFactory(any parentFactory)
parentFactory - The lightwire parent factoryprivate any setterandMixinInject(string ObjectName, any Object)
ObjectName - I am the name of the object to inject dependencies into.Object - I am the object to inject dependencies into.private void verifyBean(string ObjectName)
ObjectName - I am the name of the object to validate.
|
ColdBox Platform Version 2.6.4 | ||||
| FRAMES | |||||