* and verify that it implements the SPI.
* (this forces the check, no way out..).
*/
public Class getDefaultClass(SPInterface spi, ClassLoaders loaders) {
if (defaultClass == null) {
ResourceClassListener listener =
new ResourceClassListener() {
public boolean found(ResourceClass resource) {
defaultClass = resource.loadClass();
return false; // only get first.
}
};