This article USES the Dynamic Proxy Invocation method, as shown in Figure 2.
本文使用动态代理调用(dynamic Proxy Invocation)方法,如图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.
清单6显示了如何为User接口建立动态代理(用userimpl实现类),同时通过调用处理程序传递所有的方法调用。
Dynamic proxy classes have many interesting USES within an application, one of which is to effectively handle pre - and post-method invocation operations in a uniform fashion.
动态代理类有许多应用程序中使用的接口,其中一个可以用统一的方式有效地处理方法前和方法后的调用操作。
应用推荐