FORGEBOX Enterprise 🚀 - Take your ColdFusion (CFML) Development to Modern Times! Learn More...
cbproxies module is a raw library that allows you to build Java dynamic proxies to several key classes that allows CFML to do concurrency, streaming, and much more. The
BaseProxy can also be used so you can extend the module and create your own concrete dynamic proxies that extend the
This object is the cornerstone for creatning CFML dynamic proxies that can be used synchronously / asynchronously and keep the CFML environment for you. Every proxy needs to be created by CFML code:
proxy = new cbproxies.models.BiConsumer()
BaseProxy has the following base constructor
/** * Constructor * * @target The target function to be applied via dynamic proxy to the required Java interface(s) * @debug Add debugging messages for monitoring * @loadAppContext By default, we load the Application context into the running thread. If you don't need it, then don't load it. */ function init( required target, boolean debug = false, boolean loadAppContext = true )
target- This can be a closure/function that is stored in the proxy that will later be used by the implemented dynamic proxy call.
debug- Boolean flag that will enable debuging to console on certain key base proxy areas or by the implementing proxy.
loadAppContext- This will load up the CFML application context into the proxies scope. This will allow the Java implementation to talk to anything within the CFML engine: scopes, databases, queries, orm, etc.
Here is a table of the available proxies in this module:
|Proxy Name||Java Class|
Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com
Because of His grace, this project exists. If you don't like this, then don't read it, its not for you.
"Therefore being justified by faith, we have peace with God through our Lord Jesus Christ: By whom also we have access by faith into this grace wherein we stand, and rejoice in hope of the glory of God. And not only so, but we glory in tribulations also: knowing that tribulation worketh patience; And patience, experience; and experience, hope: And hope maketh not ashamed; because the love of God is shed abroad in our hearts by the Holy Ghost which is given unto us. ." Romans 5:5
"I am the way, and the truth, and the life; no one comes to the Father, but by me (JESUS)" Jn 14:1-12
box install cbproxies