wood burning stoves 2.0*
The moose likes JDBC and the fly likes Example of reusing common functionality (like transaction management) using reflection and delegates Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Example of reusing common functionality (like transaction management) using reflection and delegates" Watch "Example of reusing common functionality (like transaction management) using reflection and delegates" New topic
Author

Example of reusing common functionality (like transaction management) using reflection and delegates

Hendra Kurniawan
Ranch Hand

Joined: Jan 31, 2011
Posts: 239
Can anybody give an example about reusing the same functionality like transaction management (begintrans, committrans and rollbacktrans) using two methods : reflection and delegates? thanks.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39478
    
  28
Why on earth would you want to use reflection for that sort of thing?

This isn't a "beginning Java" question, so I shall move this discussion.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Example of reusing common functionality (like transaction management) using reflection and delegates