public static < C > Iterable < C > findServices ( Class < C > target ) throws IOException { return findServices ( target , Thread . currentThread ( ) . getContextClassLoader ( ) ) ; }
Returns an iterator of instances that at least according to the spi discovery file are implementations of the stated class .