public final class ApiProviderFactory
extends java.lang.Object
ApiProvider
interface. Users wishing to load an API
description from a file or URL must find the appropriate
ApiProvider
for that API description (for example,
there is an implementation for loading API descriptions using
the Swagger 2.0 language). New implementations of the
ApiProvider
interface can be made available to this
class by adding the fully qualified class name to a
META-INF/services/com.ibm.broker.rest.ApiProvider file on the
class path (see the ServiceLoader
documentation).Modifier and Type | Method and Description |
---|---|
ApiProvider |
get(java.lang.String id)
Get the specified API provider using its ID.
|
java.util.List<ApiProvider> |
getAll()
Get a list of all available and registered API providers.
|
static ApiProviderFactory |
instance()
Get the singleton instance of this class.
|
public static ApiProviderFactory instance()
public java.util.List<ApiProvider> getAll()
public ApiProvider get(java.lang.String id)
id
- the ID of the API provider to get.