public abstract class ServiceProvider extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
ServiceProvider() |
| Modifier and Type | Method and Description |
|---|---|
static List<ServiceProvider> |
available()
Gets a list of all available
ServiceProviders. |
static ServiceProvider |
current()
Get the current
ServiceProvider |
abstract BuilderService |
getBuilderService()
Deprecated.
|
ClassifierFactoryService |
getClassifierFactoryService()
Get the
ClassifierFactoryService |
abstract ImageFactoryService |
getImageFactoryService()
Get the
ImageFactoryService |
abstract ImplementationService |
getImplementationService()
Get the
ImplementationService |
int |
getPriority()
If multiple implementations of the
ServiceProvider are found on the classpath, then the
ServiceProvider with the highest value of priority will be used by default. |
static void |
setCurrent(ServiceProvider provider)
Set the current
ServiceProvider |
protected ServiceProvider()
public int getPriority()
ServiceProvider are found on the classpath, then the
ServiceProvider with the highest value of priority will be used by default.@Deprecated public abstract BuilderService getBuilderService()
BuilderServicepublic ClassifierFactoryService getClassifierFactoryService()
ClassifierFactoryServicepublic abstract ImageFactoryService getImageFactoryService()
ImageFactoryServicepublic abstract ImplementationService getImplementationService()
ImplementationServicepublic static ServiceProvider current()
ServiceProviderIllegalStateException - If there are no service providers found.public static void setCurrent(ServiceProvider provider)
ServiceProviderprovider - The ServiceProvider to be set as current.IllegalStateException - If there are no service providers found.IllegalArgumentException - If the ServiceProvider given by the parameters is not known
in the existing list of providers.public static List<ServiceProvider> available()
ServiceProviders.Copyright © 2020. All rights reserved.