Hi all,

In general I see open source projects using abstract classes for extension 
points, as that provides for a migration path in the event of an API change, 
versus breaking any code that has implemented the interface.

I see some interfaces being used in Tika, e.g. Translator.

Does the ServiceLoader require that these be interfaces? I assume not, as 
isAssignableFrom() should work with either interfaces or abstract classes, 
right?

Asking because I'm looking at the language detector API for 2.x.

Thanks,

-- Ken



--------------------------
Ken Krugler
+1 530-210-6378
http://www.scaleunlimited.com
custom big data solutions & training
Hadoop, Cascading, Cassandra & Solr





Reply via email to