public final class OSGiPriorityAwareServiceProvider extends Object implements javax.money.spi.ServiceProvider
PriorityAwareServiceProvider provided since the latest
contains some bug that doesen't allow using it with OSGi, these bugs are mainly due to not specifying
the ClassLoader when using ServiceLoader.load(Class, ClassLoader)| Constructor and Description |
|---|
OSGiPriorityAwareServiceProvider() |
| Modifier and Type | Method and Description |
|---|---|
static int |
compareServices(Object o1,
Object o2) |
int |
getPriority()
Returns a priority value of 10.
|
<T> List<T> |
getServices(Class<T> serviceType)
Loads and registers services.
|
public int getPriority()
getPriority in interface javax.money.spi.ServiceProviderpublic <T> List<T> getServices(Class<T> serviceType)
getServices in interface javax.money.spi.ServiceProviderT - the concrete type.serviceType - The service type.null.