|
|
|
|
|
by nusco
5735 days ago
|
|
From the OP: I used dynamic proxies in both Java and C#. For example, I wrote the annotations introspector for Hibernate Annotations, and a memcached wrapper for a C# project. Both are proxy-based. However, using dynamic proxies in Java feels like going against the grain of the language: strong typing and dynamic calls don't really like each other. As a result, you usually resort to Java/C# dynamic proxies only when you have no other option. I've yet to see anyone using a dynamic proxy just to remove duplication in a Java class. C# dynamics might make dynamic proxies less clumsy in that language. Will try. Do you have experience with them already? |
|
I personally think that they're very much underused, and having based an interview question on them for a while, not well-known at all.