File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jdk dynamic proxy vs cglib dynamic proxy

 
prveen dhannapuneni
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please can you help me to understand all the difference between jdk dynamic proxy vs cglib dynamic proxy.? ( I know only one difference. jdk dynamic proxy uses interface implemenations and cglic dynamic proxy can be created with out interface implementation too).
If i have to choose among jdk dynamic proxy implementation and cglib dynamic proxy, which is better in performance / maintainability?
How these two differ in J2SE environement and J2EE environement?
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24204
34
Chrome Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Personally, I try to avoid using libraries that replicate functionality already in the standard APIs; why add a dependency you don't really need? Every external library you use makes your code a little bit harder to understand and maintain. But I'm a minimalist, and my opinion is not the prevailing one in the Java community!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic