coldfusion

How to invoke a private method dynamically

Remarks#

Use of <cfinvoke> or invoke() should be faster than evaluate()

CFML

<cfinvoke method="#somePrivateMethodName#">
  <cfinvokeargument name="argument1" value="one">
</cfinvoke>

CFSCRIPT (CF10+)

invoke("", somePrivateMethodName, {argument1='one'});

This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow