2

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

Arun
  • 1,167
  • 18
  • 37

1 Answers1

3

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.

Adam Paynter
  • 46,244
  • 33
  • 149
  • 164