com.microsoft.tfs.core.clients.versioncontrol.offline
Class OfflineSynchronizerPathProvider

java.lang.Object
  extended by com.microsoft.tfs.core.clients.versioncontrol.offline.OfflineSynchronizerPathProvider
All Implemented Interfaces:
OfflineSynchronizerProvider

public final class OfflineSynchronizerPathProvider
extends java.lang.Object
implements OfflineSynchronizerProvider

This is the simplest implementation of an OfflineSynchronizerProvider, which simply works in Strings representing the local paths.

Since:
TEE-SDK-10.1
Thread-safety:
thread-safe

Constructor Summary
OfflineSynchronizerPathProvider(java.lang.String[] localPaths)
          Setup the list of resource to bring online.
 
Method Summary
 java.lang.String getLocalPathForResource(java.lang.Object o)
          Returns the resource provided.
 java.lang.Object[] getResources()
          Return an array containing the resources to be brought back online.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OfflineSynchronizerPathProvider

public OfflineSynchronizerPathProvider(java.lang.String[] localPaths)
Setup the list of resource to bring online. Resources may be any object whose toString() method returns a fully-qualified local path to the object in question.

Parameters:
localPaths - an array of resources to bring online
Method Detail

getResources

public java.lang.Object[] getResources()
Return an array containing the resources to be brought back online. Do not modify the returned objects to ensure thread-safety.

Specified by:
getResources in interface OfflineSynchronizerProvider
Returns:
the resources to bring online

getLocalPathForResource

public java.lang.String getLocalPathForResource(java.lang.Object o)
Returns the resource provided.

Specified by:
getLocalPathForResource in interface OfflineSynchronizerProvider
Parameters:
o - a resource configured in the constructor
Returns:
a fully-qualified local path to the resource


© 2015 Microsoft. All rights reserved.