Is it possible to intercept a constructor call with dynamic proxy?
I registered a proxy on a class that only contains a constructor as a test but it's not intercepted.
I am guessing that it's currently not possible but maybe there's something special I need to do?
No it is not possible. For the simple reason that the creation of proxies is managed by ProxyGenerator
which precludes using new
with proxies.