SPI: Service Provider Interface import java.sql.Driver; ServiceLoader<Driver> serviceLoader = ServiceLoader.load(Driver.class); for (Driver service : serviceLoader) { System.out.println(service); } Previous Next ponxu / 2014-07-11 Categories Java Tags Java