It's not a secret anymore!
The moose likes JDBC and Relational Databases 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 Head First Android this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
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: 43376
    
  32
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.
 
 
subject: Example of reusing common functionality (like transaction management) using reflection and delegates
 
jQuery in Action, 3rd edition