com.microsoft.tfs.core.persistence
Class VersionedVendorFilesystemPersistenceStore

java.lang.Object
  extended by com.microsoft.tfs.core.persistence.FilesystemPersistenceStore
      extended by com.microsoft.tfs.core.persistence.VersionedVendorFilesystemPersistenceStore
All Implemented Interfaces:
PersistenceStore

public class VersionedVendorFilesystemPersistenceStore
extends FilesystemPersistenceStore

Extends FilesystemPersistenceStore to automatically find the right base directory by looking in some system locations, depending on platform.

A Visual Studio-compatible location is used on Windows.

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

Constructor Summary
protected VersionedVendorFilesystemPersistenceStore(java.io.File directory)
          Creates a VersionedVendorFilesystemPersistenceStore for a directory.
  VersionedVendorFilesystemPersistenceStore(java.lang.String vendorName, java.lang.String applicationName, java.lang.String version)
          Creates a FilesystemPersistenceStore which points at a directory inside the automatically detected "home directory" location (depends on platform) with the specified vendor name, application name, and settings version mixed into the end of the path.
 
Method Summary
 PersistenceStore getChildStore(java.lang.String childName)
          Gets a PersistenceStore for the given child name.
 
Methods inherited from class com.microsoft.tfs.core.persistence.FilesystemPersistenceStore
containsItem, deleteItem, equals, getItemFile, getItemInputStream, getItemLock, getItemOutputStream, getStoreFile, getStoreLock, hashCode, initialize, migrateItem, retrieveItem, storeItem, storeItem, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VersionedVendorFilesystemPersistenceStore

public VersionedVendorFilesystemPersistenceStore(java.lang.String vendorName,
                                                 java.lang.String applicationName,
                                                 java.lang.String version)
Creates a FilesystemPersistenceStore which points at a directory inside the automatically detected "home directory" location (depends on platform) with the specified vendor name, application name, and settings version mixed into the end of the path. Mixing in these parts gives better control over isolation. See getChildStore(String) to create children inside this persistence store.

Parameters:
vendorName - the vendor name to mix into the path (must not be null or empty)
applicationName - the application name to add after the vendor name (must not be null or empty)
version - the current version to add after the application name (must not be null or empty)

VersionedVendorFilesystemPersistenceStore

protected VersionedVendorFilesystemPersistenceStore(java.io.File directory)
Creates a VersionedVendorFilesystemPersistenceStore for a directory.

Parameters:
directory - the directory which does not have to exist (must not be null)
Method Detail

getChildStore

public PersistenceStore getChildStore(java.lang.String childName)
Gets a PersistenceStore for the given child name.

Specified by:
getChildStore in interface PersistenceStore
Overrides:
getChildStore in class FilesystemPersistenceStore
Parameters:
childName - the child name (must not be null or empty)
Returns:
the new persistence store for the child


© 2015 Microsoft. All rights reserved.