createProxy

inline fun <T> SurfReflection.createProxy(): T

Creates a dynamic proxy instance for the specified class type using its class loader. This method provides a concise inline approach by leveraging the reified type parameter.

Return

A dynamic proxy instance of the specified class type T.

Throws

If the proxy cannot be created for the provided class type T.