com.microsoft.tfs.core.config.client
Interface ClientFactory

All Known Implementing Classes:
DefaultClientFactory

public interface ClientFactory

An ClientFactory is used by a TFSConnection to create clients. An ClientFactory is supplied to a TFSConnection by a ConnectionAdvisor.

TFSConnection allows only a single thread to use a DefaultClientFactory at a time.

For a default implementation, see DefaultClientFactory.

See Also:
TFSConnection, ConnectionAdvisor, DefaultClientFactory
Since:
TEE-SDK-10.1
Thread-safety:
thread-compatible

Method Summary
 java.lang.Object newClient(java.lang.Class clientType, TFSConnection connection)
          Creates a new client.
 WSSClient newWSSClient(TFSTeamProjectCollection connection, ProjectInfo projectInfo)
          Creates a new Sharepoint client.
 

Method Detail

newClient

java.lang.Object newClient(java.lang.Class clientType,
                           TFSConnection connection)
Creates a new client.

Parameters:
clientType - the client type to create (must not be null)
connection - the TFSConnection the client is being created for (must not be null)
Returns:
a new client instance (never null)
Throws:
UnknownClientException - if the client type is unknown

newWSSClient

WSSClient newWSSClient(TFSTeamProjectCollection connection,
                       ProjectInfo projectInfo)
Creates a new Sharepoint client.

Parameters:
connection - the TFSTeamProjectCollection the client is being created for (must not be null)
projectInfo - the team project to create a sharepoint client for
Returns:
a new sharepoint client instance (never null)


© 2015 Microsoft. All rights reserved.