|
ColdBox Platform Version 3.7.0 | ||||
FRAMES |
WEB-INF.cftags.componentcoldbox.system.core.dynamic.MixerUtil
public class MixerUtil
A utility object that provides runtime mixins
Constructor Summary | |
---|---|
init()
Constructor |
Method Summary | |
---|---|
any |
getPropertyMixin(any name, [any scope='variables'], [any default])
gets a property |
void |
includeitMixin(any template)
Facade for cfinclude |
void |
injectMixin(any name, any UDF)
Injects a method into the CFC |
void |
injectPropertyMixin(any propertyName, any propertyValue, [any scope='variables'])
injects a property into the passed scope |
any |
invokerMixin(any method, [any argCollection], [any argList])
Calls private/packaged/public methods |
void |
populatePropertyMixin(any propertyName, any propertyValue, [any scope='variables'])
Populates a property if it exists |
void |
removeMixin(string UDFName)
Removes a method in a CFC |
void |
removePropertyMixin(any propertyName, [any scope='variables'])
removes a property from the cfc used |
void |
start(any CFC)
Start method injection set -> Injects: includeitMixin,injectMixin,removeMixin,invokerMixin,injectPropertyMixin,removePropertyMixin,getPropertyMixin,populatePropertyMixin |
void |
stop(any CFC)
stop injection block |
Methods inherited from class WEB-INF.cftags.component |
---|
|
Constructor Detail |
---|
public init()
Method Detail |
---|
public any getPropertyMixin(any name, [any scope='variables'], [any default])
name
- The name of the property to inject.scope
- The scope to which inject the property to.default
- Default value to returnpublic void includeitMixin(any template)
template
public void injectMixin(any name, any UDF)
name
- The name to inject the UDF asUDF
- UDF to injectpublic void injectPropertyMixin(any propertyName, any propertyValue, [any scope='variables'])
propertyName
- The name of the property to inject.propertyValue
- The value of the property to injectscope
- The scope to which inject the property to.public any invokerMixin(any method, [any argCollection], [any argList])
method
- 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 populatePropertyMixin(any propertyName, any propertyValue, [any scope='variables'])
propertyName
- The name of the property to inject.propertyValue
- The value of the property to injectscope
- The scope to which inject the property to.public void removeMixin(string UDFName)
UDFName
- Name of the UDF to be removedpublic void removePropertyMixin(any propertyName, [any scope='variables'])
propertyName
- The name of the property to remove.scope
- The scope to which inject the property to.public void start(any CFC)
CFC
- The cfc to mixinpublic void stop(any CFC)
CFC
- The cfc to inject the method into
|
ColdBox Platform Version 3.7.0 | ||||
FRAMES |