This article USES the Dynamic Proxy Invocationmethod, as shown in Figure 2.
本文使用动态代理调用(dynamic Proxy Invocation)方法,如图2中所示。
2
Listing 6 shows how to create a dynamic proxy class for the User interface (using the UserImpl implementation class), while passing all method invocations through the invocation handler.
Dynamic proxy classes have many interesting USES within an application, one of which is to effectively handle pre - and post-methodinvocation operations in a uniform fashion.