public class PriorityAwareServiceProvider extends Object implements javax.money.spi.ServiceProvider
ServiceProvider
interface and hereby uses the JDK
ServiceLoader
to load the services required.Constructor and Description |
---|
PriorityAwareServiceProvider() |
Modifier and Type | Method and Description |
---|---|
static int |
compareServices(Object o1,
Object o2) |
int |
getPriority()
Returns a prioritx value of 10.
|
<T> List<T> |
getServices(Class<T> serviceType)
Loads and registers services.
|
public PriorityAwareServiceProvider()
public int getPriority()
getPriority
in interface javax.money.spi.ServiceProvider
public <T> List<T> getServices(Class<T> serviceType)
getServices
in interface javax.money.spi.ServiceProvider
T
- the concrete type.serviceType
- The service type.defaultList
- the list of items returned, if no services were found.null
.public static int compareServices(Object o1, Object o2)
Copyright © 2012-2015 JavaMoney. All Rights Reserved.