public final class SPIClassIterator<S> extends Object implements Iterator<Class<? extends S>>
ServiceLoader
but is guaranteed to
be bug-free regarding classpath order and does not instantiate or initialize
the classes found.Modifier and Type | Method and Description |
---|---|
static <S> SPIClassIterator<S> |
get(Class<S> clazz) |
static <S> SPIClassIterator<S> |
get(Class<S> clazz,
ClassLoader loader) |
boolean |
hasNext() |
Class<? extends S> |
next() |
void |
remove() |
public static <S> SPIClassIterator<S> get(Class<S> clazz)
public static <S> SPIClassIterator<S> get(Class<S> clazz, ClassLoader loader)
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.