javax.measure.spi.ServiceProvider class and hereby uses the JDK java.util.ServiceLoader to load the required
services.
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private static final Comparator | |
| private final Map | servicesLoaded
List of services loaded, per class. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static int | |
| public int | compareTo(ServiceProvider
the object to be compared. o)Implements java. Compares this object with the specified object for order. |
| public FormatService | getFormatService()
Implements abstract javax. Returns the service to obtain |
| public final <Q extends Quantity | Returns: theQuantityFactorythe quantity type quantity)Implements abstract javax. Return a factory for this quantity |
| protected <T> T | |
| protected < the concrete type. T> List | Returns: the items found, nevernull.The service type. serviceType)Loads and registers services. |
| public SystemOfUnitsService | getSystemOfUnitsService()
Implements abstract javax. Returns the service to obtain a |
| private < the concrete type. T> List | Returns: the items found, nevernull.The service type. serviceType)Loads and registers services. |
| public abstract String |
| QUANTITY_FACTORIES | back to summary |
|---|---|
private final Map<Class<T>, QuantityFactory<Q extends Quantity<Q>>> QUANTITY_FACTORIES
| |
| SERVICE_COMPARATOR | back to summary |
|---|---|
| private static final Comparator<Object> SERVICE_COMPARATOR | |
| servicesLoaded | back to summary |
|---|---|
| private final Map<Class<T>, List<Object>> servicesLoaded List of services loaded, per class.
| |
| AbstractServiceProvider | back to summary |
|---|---|
| public AbstractServiceProvider() | |
| compareServices | back to summary |
|---|---|
| private static int compareServices(Object o1, Object o2) | |
| compareTo | back to summary |
|---|---|
| public int compareTo(ServiceProvider o) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| getFormatService | back to summary |
|---|---|
| public FormatService getFormatService() Implements abstract javax. Doc from javax. Returns the service to obtain
| |
| getQuantityFactory | back to summary |
|---|---|
| public final <Q extends Quantity Implements abstract javax. Return a factory for this quantity
| |
| getService | back to summary |
|---|---|
| protected <T> T getService(Class<T> serviceType) | |
| getServices | back to summary |
|---|---|
| protected <T> List Loads and registers services. | |
| getSystemOfUnitsService | back to summary |
|---|---|
| public SystemOfUnitsService getSystemOfUnitsService() Implements abstract javax. Doc from javax. Returns the service to obtain a
| |
| loadServices | back to summary |
|---|---|
| private <T> List Loads and registers services. | |
| toString | back to summary |
|---|---|
| public abstract String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |