com.microsoft.tfs.core.config.client
Class DefaultClientFactory

java.lang.Object
  extended by com.microsoft.tfs.core.config.client.DefaultClientFactory
All Implemented Interfaces:
ClientFactory

public class DefaultClientFactory
extends java.lang.Object
implements ClientFactory

A default implementation of the ClientFactory interface.

See Also:
ClientFactory
Since:
TEE-SDK-10.1
Thread-safety:
thread-safe

Constructor Summary
DefaultClientFactory()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultClientFactory

public DefaultClientFactory()
Method Detail

newClient

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

Specified by:
newClient in interface ClientFactory
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)

newWSSClient

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

Specified by:
newWSSClient in interface ClientFactory
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.