org.ldaptive.provider
Interface Provider<T extends ProviderConfig>

Type Parameters:
T - type of provider config for this provider
All Known Implementing Classes:
JndiProvider

public interface Provider<T extends ProviderConfig>

Provides access to a provider specific connection factory.

Version:
$Revision: 2885 $ $Date: 2014-02-05 16:28:49 -0500 (Wed, 05 Feb 2014) $
Author:
Middleware Services

Method Summary
 ProviderConnectionFactory<T> getConnectionFactory(ConnectionConfig cc)
          Returns the connection factory for this provider.
 T getProviderConfig()
          Returns the provider configuration.
 Provider<T> newInstance()
          Creates a new instance of this provider.
 void setProviderConfig(T pc)
          Sets the provider configuration.
 

Method Detail

getProviderConfig

T getProviderConfig()
Returns the provider configuration.

Returns:
provider configuration

setProviderConfig

void setProviderConfig(T pc)
Sets the provider configuration.

Parameters:
pc - provider configuration

getConnectionFactory

ProviderConnectionFactory<T> getConnectionFactory(ConnectionConfig cc)
Returns the connection factory for this provider.

Parameters:
cc - connection configuration
Returns:
connection factory

newInstance

Provider<T> newInstance()
Creates a new instance of this provider.

Returns:
new instance of this provider


Copyright © 2003-2015 Virginia Tech. All Rights Reserved.