public abstract class ProviderFactory extends Object
| Constructor and Description |
|---|
ProviderFactory() |
| Modifier and Type | Method and Description |
|---|---|
static Provider |
create(URI remoteURI)
Static create method that performs the ProviderFactory search and handles the
configuration and setup.
|
static Provider |
create(URI remoteURI,
ProviderFutureFactory futureFactory)
Static create method that performs the ProviderFactory search and handles the
configuration and setup.
|
abstract Provider |
createProvider(URI remoteURI)
Creates an instance of the given AsyncProvider and configures it using the
properties set on the given remote broker URI.
|
abstract Provider |
createProvider(URI remoteURI,
ProviderFutureFactory futureFactory)
Creates an instance of the given AsyncProvider and configures it using the
properties set on the given remote broker URI.
|
static ProviderFactory |
findProviderFactory(String scheme)
Searches for a ProviderFactory by using the scheme given.
|
static ProviderFactory |
findProviderFactory(URI location)
Searches for a ProviderFactory by using the scheme from the given URI.
|
abstract String |
getName() |
public abstract Provider createProvider(URI remoteURI) throws Exception
remoteURI - The URI used to connect to a remote Broker.Exception - if an error occurs while creating the Provider instance.public abstract Provider createProvider(URI remoteURI, ProviderFutureFactory futureFactory) throws Exception
remoteURI - The URI used to connect to a remote Broker.futureFactory - The ProviderFutureFactory to use when creating the new Provider.Exception - if an error occurs while creating the Provider instance.public abstract String getName()
public static Provider create(URI remoteURI) throws Exception
remoteURI - the URI of the remote peer.Exception - if an error occurs while creating the AsyncProvider instance.public static Provider create(URI remoteURI, ProviderFutureFactory futureFactory) throws Exception
remoteURI - the URI of the remote peer.futureFactory - the ProviderFutureFactory to use when building the new Provider.Exception - if an error occurs while creating the AsyncProvider instance.public static ProviderFactory findProviderFactory(URI location) throws IOException
location - The URI whose scheme will be used to locate a ProviderFactory.IOException - if an error occurs while locating the factory.public static ProviderFactory findProviderFactory(String scheme) throws IOException
scheme - The URI scheme that describes the desired factory.IOException - if an error occurs while locating the factory.Copyright © 2013–2019 The Apache Software Foundation. All rights reserved.