开发者

Java Dynamic Proxy [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly bro开发者_运维知识库ad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

what is java dynamic proxy,lot of tutorials are there but they are confusing me ,where we are using this concept , any one explain with real world application usage


Perhaps the documentation can offer some input:

Dynamic proxy classes are useful to an application or library that needs to provide type-safe reflective dispatch of invocations on objects that present interface APIs. For example, an application can use a dynamic proxy class to create an object that implements multiple arbitrary event listener interfaces-- interfaces that extend java.util.EventListener-- to process a variety of events of different types in a uniform fashion, such as by logging all such events to a file.

It also provides several examples.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜