Create a new proxy instance.
Proxy instances will also implement
Serializable .
Delegates the actual creation of the proxy to
Proxies.newTarget .
Parameters: loader - The class loader for the new proxy instance. Parameters: interfaces - A list of classes which the proxy will implement. Parameters: h - The handler for method invocations. A new proxy instance. throws: RuntimeException - Failed to create new proxy target. |