Lucee Function Reference

createdynamicproxy()

Wraps the given component with a Java class that implements the specified interfaces.
If no interfaces are provided, Lucee will create a proxy based on the component's interface itself.

Example

createdynamicproxy(object cfc,[object interfaces]):any

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
cfc object  Yes The component or the name of the component to be wrapped. This argument is mandatory.  
interfaces object  No An array of strings containing the interface paths, or a comma-separated list of interface paths.
This argument is optional.