Java language architect Brian Goetz has posted a call for developers to share their experiences with Java dynamic proxies in a brief survey. The four-question survey asks whether Java developers are using dynamic proxies and if so, how much insight they have into the logic of proxies in an invocation handler: "Were all methods intercepted, or only some; were most method invocations proxied to an underlying instance;" and so on. It concludes with the most important question: "What would you improve about dynamic proxies, if you could?"
Developers responding to Goetz's tweet as of Tuesday afternoon have suggested that dynamic proxies could be improved by allowing the usage of
InvokeDynamic bytecode instruction in the Java language (@antoine_sd); enabling class proxies (@jessewilson); and including a native app facility in Java (@frett27).
More about dynamic proxies
You can learn more about dynamic proxies on JavaWorld and read Brian Goetz's own introduction to Java Decorators and Adapters with proxies on IBM developerWorks:
- Explore the Dynamic Proxy API (Jeremy Blosser, JavaWorld, November 2000): Use dynamic proxies to bring strong typing to abstract data types.
- Implement design-by-contract for Java using dynamic proxies (Anders Eliasson, JavaWorld, February 2002): Write bug-free code with the DBCProxy framework.
- Generically chain dynamic proxies (Srijeeb Roy, JavaWorld, January 2006): Add AOP concepts to your Java programming toolkit.
- Java theory and practice: Decorating with dynamic proxies (Brian Goetz, IBM developerWorks, August 2005): Dynamic proxies are a convenient tool for building Decorators and Adapters.