|
ColdBox Platform Version 2.6.3 | ||||
FRAMES |
WEB-INF.cftags.componentcoldbox.system.frameworkSupertype
coldbox.system.plugin
coldbox.system.plugins.methodInjector
public class methodInjector
Method Injector plugin. It provides a nice way to mixin and remove methods from cfc's
Constructor Summary | |
---|---|
init(any controller)
Constructor |
Method Summary | |
---|---|
any |
getcontroller()
Get controller: coldbox.system.controller |
void |
injectMixin(any UDF)
injects a method into the CFC scope |
void |
injectPropertyMixin(string propertyName, any propertyValue, [string scope='variables'])
injects a property into the passed scope |
any |
invokerMixin(string method, [struct argCollection], [string argList])
calls private/packaged/public methods |
void |
populatePropertyMixin(string propertyName, any propertyValue, [string scope='variables'])
Populates a property if it exists |
void |
removeMixin(string UDFName)
removes a method in a CFC |
void |
removePropertyMixin(string propertyName, [string scope='variables'])
removes a property from the cfc used. |
void |
setcontroller(any controller)
Set controller |
void |
start(any CFC)
start method injection set. Injects: injectMixin,removeMixin,invokerMixin,injectPropertyMixin,removePropertyMixin |
void |
stop(any CFC)
stop injection block. Removes mixed in methods. |
Methods inherited from class coldbox.system.plugin |
---|
getPluginDescription, getPluginName, getPluginVersion, getpluginPath, setPluginDescription, setPluginName, setPluginVersion
|
Methods inherited from class WEB-INF.cftags.component |
---|
|
Constructor Detail |
---|
public init(any controller)
Method Detail |
---|
public any getcontroller()
getcontroller
in class
frameworkSupertype
public void injectMixin(any UDF)
UDF
- UDF to be checkedpublic void injectPropertyMixin(string propertyName, any propertyValue, [string 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(string method, [struct argCollection], [string 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(string propertyName, any propertyValue, [string 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(string propertyName, [string scope='variables'])
propertyName
- The name of the property to remove.scope
- The scope to which inject the property to.public void setcontroller(any controller)
setcontroller
in class
frameworkSupertype
controller
- coldbox.system.controllerpublic void start(any CFC)
CFC
- The cfc to inject the method intopublic void stop(any CFC)
CFC
- The cfc to inject the method into
|
ColdBox Platform Version 2.6.3 | ||||
FRAMES |