public class Providers extends Object
The standard ServiceLoader architecture is quite unfriendly to
reflective access and is even more unfriendly to a lightweight generic
build&deployment procedure.
This implementation uses a single file "META-INF/provider/provider.list" to enumerate service/implementation pairs. Each service is listed on a line of its own. The service is followed by a ";", then followed by the implementation class. Empty lines are ignored.
| Modifier and Type | Field and Description |
|---|---|
static char |
COMMENT |
static String |
SEPARATOR |
| Modifier and Type | Method and Description |
|---|---|
static Providers |
get() |
static Providers |
get(ClassLoader classloader) |
<S> Iterator<S> |
lookupProviders(Class<S> service) |
void |
register(InputStream is) |
public static final char COMMENT
public static final String SEPARATOR
public static Providers get()
public static Providers get(ClassLoader classloader)
public void register(InputStream is) throws IOException
IOExceptionCopyright © 2013 intarsys consulting GmbH. All Rights Reserved.