# CreateDynamicProxy()

Wrap the given component with a Java class that implements the given interfaces.

```
CreateDynamicProxy( cfc=object, interfaces=object );
```

**Returns:** any

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| cfc | object | Yes | component or component name *Alias: cfcName, component, componentName* |  |
| interfaces | object | No | Array of strings containing interface paths or a string list of interface paths. `[{ class:"lucee.util.List", bundlename:"lucee.ext", bundleVersion:"1.2.3.4" }]` *Alias: interface* |  |

# Examples

*There are currently no examples for this function.*







# Categories

[Java](../../categories/java.md)

# See Also

[getClass() Method for Components](../../recipes/component-getclass-method.md), [Dynamic Proxy Enhancements](../../recipes/dynamic-proxy-enhancements.md)