Sunday, January 16, 2011

Plugging 3rd party jars into DiffKit

With the 0.8.10 release, you can add third-party jars to DiffKit. DiffKit will recognize JDBC drivers found in those jars, as well as custom Sources, Sinks, and Diffors.
The DiffKit distribution includes a directory "dropin". It’s directly under the DIFFKIT_HOME directory, which is normally the same directory that the diffkit-app.jar is in after you have unzipped the binary download. The directory in the distribution is empty. Any extra jars that you want DiffKit to recognized you can simply copy into the dropin directory. DiffKit will automatically load all jars within dropin each time it runs. Note well that the only archive type that DiffKit recognizes is jar-- it does not recognize zip, war, ear, etc.
All jars within dropin are loaded before any of the third-party jars that are embedded within DiffKit. That means you can override JDBC drivers that are part of the DiffKit binary distribution. You might need to do this in the case of HyperSQL DB, where the version of the JDBC driver must match the version of the DB server. You might also want to add a new JDBC driver in the case where the vendor supplies a newer version of the driver than the one that DiffKit embeds, and that newer version is higher performance.
The principal use for dropins is to allow the user to write custom Source/Sink/Diffor java classes, and then plug those custom implementations into DiffKit. Source/Sink/Diff are documented in the User Guide. Those three key abstractions are represented as Java Interfaces within DiffKit. You can write your own Java classes that implement those Interfaces. You will need to use a PassthroughPlan to reference the custom classes, because MagicPlan does not recognize them. Custom classes are referenced within the Passthrough plan in exactly the same way that DiffKit native classes are.
As a trivial example of a custom Sink, the DiffKit source distribution includes class org.diffkit.contrib.DKSimpleCustomSink. org.diffkit.contrib is a package that is not included in the binary distribution. You can plug that custom Sink into your plan with, for instance, this specification:
...
<bean id="plan" class="org.diffkit.diff.conf.DKPassthroughPlan">
   <property name="lhsSource" ref="lhs.source" />
   <property name="rhsSource" ref="rhs.source" />
   <property name="sink" ref="customSink" />
   <property name="tableComparison" ref="table.comparison" />
</bean>
...
<bean id="customSink" class="org.diffkit.contrib.DKSimpleCustomSink">
   <constructor-arg index="0" value="./custom_report.diff" />
</bean>
...
Having DiffKit recognize your custom Sink is simply a matter of compiling and archiving the org.diffkit.contrib.DKSimpleCustomSink into a jar file, and the dropping that jar file into the dropin directory.

93 comments:

  1. In the particular article You might understand how for getting started building net applications services web design

    ReplyDelete
  2. Thanks for the good words! Really appreciated. Great post. I ve been commenting a lot on a few blogs recently, but I had nt thought about my approach until you brought it up.

    SAP training in Chennai

    ReplyDelete
  3. A nice article here, i think that people who have grown up with the idea of using computers are showing more responsibility towards writing posts that are thoughtful, do not have grammar mistakes and pertinent to the post..

    Online Training in Chennai

    ReplyDelete
  4. Your tips are really wonderful and its ideas are really well good and it makes me to think a very well good ideas. thus it is informative and it is really interesting.

    Online Reputation Management

    ReplyDelete
  5. very useful information provided in this blog. concepts were explained in a detailed manner. Keep giving these types of information.
    SEO company in Chennai

    ReplyDelete
  6. Thank you for sharing such a nice and interesting blog with us. Hope it might be much useful for us. keep on updating...!!
    seo company in india
    digital marketing company in india
    seo company in chennai
    digital marketing company in chennai

    ReplyDelete
  7. Great post! I am actually getting ready to across this information, is very helpful my friend. Also great blog here with all of the valuable information you have Keep up the good work you are doing here.Well, got a good knowledge.

    Laser Root Canal Treatment In Chennai

    Best Dental Clinic In Velachery

    ReplyDelete
  8. Imagine to browse the map and get the most relevant pictures with a magnifying glass through a tiled view composed of three concentric levels. kakskachatsoftnatelefon.ru Baby Minder is a timer application that has been developed by a mom with a newborn.

    ReplyDelete
  9. IN the forum he tells us to e-mail the developer who is in help. download tv shows New this versionMajor user interface & graphics upgrade.

    ReplyDelete
  10. To get the item needing to travel to the moon that has a much stronger stone than steel, dwarf goes on a various and fantastic puzzle expedition. download music For the past few months, shes been on her own in the yellow house, managing somehow, knowing that her mother will probably never return.

    ReplyDelete
  11. Whenever you launch the app or switch back to the app, you need to authenticate. Try this! Meditation has been a remedy for thousands of years, not only in eastern religions.

    ReplyDelete
  12. Do you want to get out of bed early and be on time for your appointments. download activation codes Compete against your peers or even parents by setting different levels of difficulty.

    ReplyDelete
  13. Category: Productivity Released: January 2010 Version: 1. link for you From Nathan Fennel: Color Springboard provides a simple set of tools for finding the perfect color for your design projects.

    ReplyDelete
  14. As a vague image forms in your mind, sketch it as best as possible in step one. http://novico.ru High contrast colored maps to quickly pinpoint problems on the road.

    ReplyDelete
  15. "This app completely re-invents the round timer, and every. http://uborka-kvartir-krasnodar.ru From DC-Matic: Comic book reader designed to display your purchased or scanned comic books in their proper size.

    ReplyDelete
  16. Great info! I recently came across your blog and have been reading along.
    eCommerce Supply Chain Management

    ReplyDelete
  17. Practice Mode: Hone your skills in this free play mode. neerajanam telugu movie songs This feature is only available on the deluxe version.

    ReplyDelete
  18. Great info! I recently came across your blog and have been reading along.

    Dot Net Training Institute in Chennai

    ReplyDelete
  19. Great info! I recently came across your blog and have been reading along.

    Android Training Institute in Chennai

    ReplyDelete
  20. Click the popover button on the top left to change the image. downlodable games I Saw Mommy Kissing Santa Claus Frosty The Snowman2.

    ReplyDelete
  21. - Windows 7 only: View a currently played Video, jump to a position inside it. downloadsoftwarefromskylar.club Exam Tips: Ideas of what to do before, during and after an exam.

    ReplyDelete
  22. 2 - On With Torchy English, 68,450 words (196 pages) http://bestkeygensarchive.me From Green Mountain Power: Want a fast, easy way to pay your bill and monitor energy usage.

    ReplyDelete
  23. Information, address, near Hotels and ratings of the attraction selected. Web page. Contacts and Carts - View and manage your contacts and listings.

    ReplyDelete
  24. You can even include pictures to show just how good they look, make um hungrier than a woodpecker with a headache. topdownloadsoftwareonline.us With a swipe of the switching arrows you will direct the trains through the train yard to their correct station.

    ReplyDelete
  25. But did you know that you can securely get your files on the go with your iPhone, iPod Touch or iPad. topdownloadwarezcatalog.us Accellion Mobile Apps are a key component of the robust Accellion Secure Collaboration solution for Enterprise organizations.

    ReplyDelete
  26. Homecoming Magazine Pricing: Single Issue Price - USD $3. awesomedownloadyourfiles.ga 0 Add prompt on your input, such as "very close", "close", "space", etc, to make you aware of how much you are getting close to the right answer.

    ReplyDelete
  27. No one can deny the fact that search engine optimization drives visitors for your website. You will be deeply surprised by the results of SEO. For this reason, our SEO Agency in Chennai can provide you with all the needed skills to boost your website visibility in the top of search engine results. Therefore, if you are looking for a Best SEO Agency in Chennai we are there to help you.

    ReplyDelete
  28. Thanks for sharing. Data entry services are very useful in business firms and organizations as there is a huge demand for entry.
    data entry outsourcing companies

    ReplyDelete
  29. Please keep writing more about it and give more insight. I'll bookmark your page so that I can visit your site regularly."
    We all bleed the same color
    Top 25 android emulators for windows and mac
    Top 51 beautiful japanese women

    ReplyDelete
  30. If you are looking for high quality Good morning images with love birds, you can visit our website Daily Image Funda and download for free.

    ReplyDelete
  31. Thanks for Sharing This Article.It is very so much valuable content. I hope these Commenting lists will help to my website
    blockchain online training
    best blockchain online training
    top blockchain online training

    ReplyDelete
  32. I Saw Your Website Carefully. Thanks For Create Such Kind of Informative Website. Your All Content Is Relevant To Your Subject. I Say Keep It Continue, Because Your Website And Subject Is Meaningful For The Users. I Have Recommended Your Website With My Friends Also.
    Escort Girls Service
    Escort Service In Delhi
    Mumbai Escorts Service
    Call Girl In Chennai
    Call Girl In Hyderabad
    Call Girl In Bangalore

    ReplyDelete
  33. Why is content very important in digital Marketing field or online marketing? As the content is the king of all the other chapters of digital marketing or online marketing because when consumer visit a shop directly to purchase or inquire about any of the product in the shops the shopkeeper will explain them thoroughly the features and benefits of the products. data science course syllabus

    ReplyDelete
  34. Truly, this article is really one of the very best in the history of articles. I am a antique ’Article’ collector and I sometimes read some new articles if I find them interesting. And I found this one pretty fascinating and it should go into my collection. Very good work!
    data science course in India

    ReplyDelete
  35. Really nice and interesting post. I was looking for this kind of information and enjoyed reading this one. Keep posting. Thanks for sharing.
    Artificial Intelligence Course

    ReplyDelete
  36. It's a very good blog. I'm glad I came across a good blog like this. Update new games. That we got here one place joker slot

    ReplyDelete
  37. here you can get more information about joining pakistan navy
    Join Pak Navy

    ReplyDelete
  38. Hookah wholesalers: Metier Wholesale offers the premium quality hookah & shisha online in Germany, Netherland, Spain & Europe at the best price!
    hookah wholesalers
    wholesale hookah
    shisha shop

    ReplyDelete
  39. Buy Mobile & Mobile Accessories products online at best prices from Aldebazaar. Check out Mobile & Mobile Accessories products from top brands at Aldebazaar.com.
    buy mobile phone online
    best website to buy mobilephone online
    cheap mobile phonew online

    ReplyDelete
  40. I was very pleased to find this site. I wanted to thank you for this great read!! I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you post. drywall installation Chicago

    ReplyDelete
  41. This would really mean a lot. Thanks for sharing this one out. cleaning Bartonville, TX

    ReplyDelete
  42. how to fix a hole in the wall

    This blog post is well written and has a clear message. Thank you for sharing...

    ReplyDelete
  43. Drywall Contractor

    Thank you for sharing this helpful information. ��

    ReplyDelete

  44. I’m impressed with your data. Well detailed! Thanks
    https://electriciansinlancasterca.com/

    ReplyDelete
  45. Very informative post. Thanks for sharing this. I really appreciate it.
    air conditioning san francisco

    ReplyDelete
  46. "Buy Oxycodone online from Safemedionline. We have the list of top Oxycodone suppliers, manufacturers, wholesalers and traders with the best price listed from worldwide.

    " Buy Oxycodone Online

    ReplyDelete
  47. Buy percocet online in the USA and Canada all states with overnight shipping. No Rx need to get percocet online by credit card or PayPal. No need prescription to get percocet online with discount. Buy Percocet Online

    ReplyDelete
  48. buy vicodin online is a combination of a narcotic and acetaminophen used to relieve moderate to severe pain. Buy Vicodin Online

    ReplyDelete
  49. Buy Norco Online Many people waste your time to find on internet for “ buy norco online 10mg" from near pharmacy in United States. Buy Norco Online

    ReplyDelete
  50. Buy Oxycontin Online with the lowest price, here you can buy all dosage of oxycontin products with the lowest price without prescription, order now. Buy Oxycontin Online

    ReplyDelete
  51. Buy Adderall Online No Prescription The usual starting dose is 10 mg taken once a day in the morning. The initial dose is usually low and then gradually increased. Buy Adderall Online

    ReplyDelete
  52. Buy Tramadol Online Without Prescription from the online store, We serve online tramadol on your doorstep at reasonable prices. Buy Tramadol Online

    ReplyDelete
  53. Buy Lortab Online from Safemedionline Pharmacy the best online pharmacy and enjoy the best quality drugs you could ever have. Buy Lortab Online

    ReplyDelete
  54. Great information, i was searching of this kind of information, thankyou very much for sharing with us. i also have some links to share
    Get up To 20% Off buy diazepam 10mg online
    Get up To 20% Off ativan 1mg tablet buy online
    Get up To 20% Off buy xanax 1mg online

    ReplyDelete
  55. I found this is an informative blog and also very useful and knowledgeable. I would like to thank you for the efforts you have made in writing this blog


    Get up To 30% Off buy modalert online

    Get up To 30% Off buy artvigil online
    Get up To 30% Off buy waklert online
    Get up To 30% Off buy modvigil online

    Get up To 30% Off buy vilafinil online

    ReplyDelete