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.
|
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.
|
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 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 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.Copyright © 2013–2016 The Apache Software Foundation. All rights reserved.