wood burning stoves 2.0*
The moose likes Other JSE/JEE APIs and the fly likes jdk dynamic proxy vs cglib dynamic proxy Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "jdk dynamic proxy vs cglib dynamic proxy" Watch "jdk dynamic proxy vs cglib dynamic proxy" New topic
Author

jdk dynamic proxy vs cglib dynamic proxy

prveen dhannapuneni
Greenhorn

Joined: Oct 13, 2007
Posts: 7
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

Joined: Jul 08, 2003
Posts: 24187
    
  34

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!


[Jess in Action][AskingGoodQuestions]
 
wood burning stoves
 
subject: jdk dynamic proxy vs cglib dynamic proxy