This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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 Building Microservices this week in the Design 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: 44047
    
  33
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Example of reusing common functionality (like transaction management) using reflection and delegates
 
jQuery in Action, 3rd edition