The Artima Developer Community
Sponsored Link

Java Buzz Forum
ICompatible

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Bill de hÓra

Posts: 1137
Nickname: dehora
Registered: May, 2003

Bill de hÓra is a technical architect with Propylon
ICompatible Posted: Jun 23, 2008 4:30 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Bill de hÓra.
Original Post: ICompatible
Feed Title: Bill de hÓra
Feed URL: http://www.dehora.net/journal/atom.xml
Feed Description: FD85 1117 1888 1681 7689 B5DF E696 885C 20D8 21F8
Latest Java Buzz Posts
Latest Java Buzz Posts by Bill de hÓra
Latest Posts From Bill de hÓra

Advertisement

Brian McCallister: "To take a concrete example, a coworker (thanks Jax!) recently re-added first class support for callable statements to jDBI. jDBI uses a Handle interface to expose operations against a database. It has gained a method:

public <ReturnType> Call<ReturnType> createCall(String callableSql, 
CallableStatementMapper<ReturnType> mapper);

If you implement this interface, the change is backwards incompatible. An implementation of HandleHandle, it is to expose the libraries functionality. It is made against 2.2.2 will not compile against this. On the other hand, the intent of the library is not for people to implement almost a header file.  So, 2.3 or 3.0? "

It's 3.0. Semantics of what we mean by "API" aside, jDBI here is closer to an 'SPI', structurally it's not going to compile. That's how Java rolls. Fwiw, I think is a good example of where not to use an Interface rather than get into distinctions about public v published. I understand not programming to interfaces is heresy, but in this case I wouldn't care much - an abstract class will avoid uneccessary versioning pain.

I guess other people can ponder on what the generics are getting you there ;)

Read: ICompatible

Topic: The Apache Jakarta Project has released JMeter 2.3.2, an open source (Apache 2.0 license) load... Previous Topic   Next Topic Topic: John Simonds on Twitter, blogs, & tags in Analyst Relations from PeopleOverProcess.com

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use